/* ============================================
   Ein Guter Vater — Blog Styles
   ============================================ */

:root {
  --navy: #1a2744;
  --navy-light: #243352;
  --gold: #d4a843;
  --gold-hover: #e0b955;
  --cream: #f8f6f1;
  --green: #4a7c59;
  --text: #333;
  --text-light: #666;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26, 39, 68, .08);
  --shadow-hover: 0 8px 32px rgba(26, 39, 68, .15);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.3;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-hover); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER (same as main site) ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26, 39, 68, .95);
  backdrop-filter: blur(12px);
  transition: box-shadow .3s;
  padding: 0 24px;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.15); }

.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: #fff; display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.logo i { color: var(--gold); }
.logo span { color: var(--gold); }

.nav-links {
  list-style: none; display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,.85); font-size: .92rem; font-weight: 500;
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }

.lang-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 6px 14px; border-radius: 20px;
  cursor: pointer; font-size: .85rem; font-weight: 600;
  transition: all .2s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }

.mobile-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.4rem; cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 70px; left: 0; right: 0; background: var(--navy);
    padding: 20px; gap: 16px;
  }
  .nav-links.open { display: flex; }
}

/* ===== BLOG HERO ===== */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(212,168,67,.08) 0%, transparent 60%);
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff; margin-bottom: 12px;
}
.blog-hero h1 .text-gold { color: var(--gold); }
.blog-hero p {
  color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto;
}

/* ===== CATEGORY FILTERS ===== */
.category-filters {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 40px 24px 20px;
}
.filter-btn {
  background: #fff; border: 2px solid #e0dcd5; color: var(--text);
  padding: 8px 22px; border-radius: 30px; cursor: pointer;
  font-size: .9rem; font-weight: 600; font-family: 'Inter', sans-serif;
  transition: all .25s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
  background: var(--gold); border-color: var(--gold); color: #fff;
}

/* ===== ARTICLE GRID (BLOG INDEX) ===== */
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding: 40px 0 80px;
}
@media (max-width: 960px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.article-card[style*="display: none"] { display: none !important; }

.article-card-img {
  position: relative; overflow: hidden; height: 220px;
}
.article-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.article-card:hover .article-card-img img { transform: scale(1.05); }

.article-card-body { padding: 24px; }

.article-card-tag {
  display: inline-block; background: rgba(74,124,89,.1); color: var(--green);
  padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600;
  margin-bottom: 10px;
}
.article-card-tag.tips { background: rgba(212,168,67,.12); color: var(--gold); }
.article-card-tag.stories { background: rgba(74,124,89,.1); color: var(--green); }
.article-card-tag.rights { background: rgba(26,39,68,.08); color: var(--navy); }
.article-card-tag.tools { background: rgba(136,84,208,.1); color: #7c4dbd; }

.article-card-date {
  font-size: .82rem; color: var(--text-light); margin-bottom: 8px;
}

.article-card-body h3 {
  font-size: 1.15rem; margin-bottom: 10px; line-height: 1.4;
}
.article-card-body h3 a { color: var(--navy); text-decoration: none; }
.article-card-body h3 a:hover { color: var(--gold); }

.article-card-body > p {
  font-size: .92rem; color: var(--text-light); line-height: 1.6;
  margin-bottom: 16px;
}

.article-card-link {
  font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px;
}
.article-card-link i { font-size: .75rem; transition: transform .2s; }
.article-card-link:hover i { transform: translateX(4px); }

/* ===== ARTICLE PAGE HERO ===== */
.article-hero {
  position: relative; height: 50vh; min-height: 380px; max-height: 520px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.article-hero img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.article-hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(26,39,68,.85) 0%, rgba(26,39,68,.2) 60%, transparent 100%);
}
.article-hero-content {
  position: relative; z-index: 2; padding: 40px 0;
  width: 100%; max-width: 800px; margin: 0 auto;
}
.article-hero-content .article-meta {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap;
}
.article-hero-content .article-meta .cat-tag {
  background: var(--gold); color: #fff; padding: 4px 14px;
  border-radius: 20px; font-size: .8rem; font-weight: 600;
}
.article-hero-content .article-meta .date {
  color: rgba(255,255,255,.7); font-size: .88rem;
}
.article-hero-content h1 {
  color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 8px; max-width: 700px;
}
.article-hero-content .author {
  color: rgba(255,255,255,.65); font-size: .9rem;
}

/* ===== ARTICLE BODY ===== */
.article-body {
  padding: 60px 0 40px;
}
.article-body h2 {
  font-size: 1.6rem; margin: 40px 0 16px; color: var(--navy);
  border-left: 4px solid var(--gold); padding-left: 16px;
}
.article-body h3 {
  font-size: 1.25rem; margin: 32px 0 12px;
}
.article-body p {
  font-size: 1.05rem; line-height: 1.85; margin-bottom: 20px; color: #444;
}
.article-body ul, .article-body ol {
  padding-left: 28px; margin-bottom: 20px;
}
.article-body li {
  font-size: 1.02rem; line-height: 1.8; margin-bottom: 8px; color: #444;
}
.article-body strong { color: var(--navy); }
.article-body blockquote {
  border-left: 4px solid var(--gold); margin: 28px 0;
  padding: 16px 24px; background: rgba(212,168,67,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--navy);
}

/* Numbered tips styling */
.tip-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--gold); color: #fff;
  border-radius: 50%; font-weight: 700; font-size: .95rem;
  margin-right: 10px; flex-shrink: 0;
}

/* ===== SHARE BUTTONS ===== */
.share-bar {
  display: flex; align-items: center; gap: 12px; margin: 40px 0;
  padding: 20px 0; border-top: 1px solid #e8e5de; border-bottom: 1px solid #e8e5de;
}
.share-bar span { font-weight: 600; color: var(--navy); font-size: .95rem; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 1rem;
  transition: all .25s; color: #fff;
}
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.copy { background: var(--navy); }
.share-btn:hover { transform: scale(1.1); opacity: .9; }
.copy-feedback {
  font-size: .82rem; color: var(--green); font-weight: 600;
  opacity: 0; transition: opacity .3s;
}
.copy-feedback.show { opacity: 1; }

/* ===== RELATED ARTICLES ===== */
.related-section {
  background: #fff; padding: 60px 0;
}
.related-section h2 {
  text-align: center; margin-bottom: 8px;
}
.related-section .section-line {
  width: 60px; height: 3px; background: var(--gold);
  margin: 0 auto 40px; border-radius: 2px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.7); padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { margin-top: 12px; font-size: .92rem; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff; font-size: .95rem;
  transition: all .2s;
}
.footer-social a:hover { background: var(--gold); color: #fff; }

.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: 'Inter', sans-serif; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.45);
}

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 1; }
.reveal.pre-animate { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== PAGINATION PLACEHOLDER ===== */
.pagination {
  display: flex; justify-content: center; gap: 8px; padding: 0 0 60px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  font-weight: 600; font-size: .95rem; transition: all .2s;
}
.pagination a { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.pagination a:hover { background: var(--gold); color: #fff; }
.pagination span.current { background: var(--gold); color: #fff; }

/* ===== BACK TO TOP ===== */
.back-top {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: var(--navy); color: #fff;
  border-radius: 30px; font-size: .88rem; font-weight: 600;
  position: fixed; bottom: 30px; right: 30px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 99;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--gold); color: #fff; }

/* ===== IMPRESSUM MODAL ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.6); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #fff; border-radius: var(--radius); padding: 40px;
  max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 20px; background: none;
  border: none; font-size: 1.8rem; cursor: pointer; color: var(--text-light);
}
.article-card-tag.freiburg { background: rgba(0,128,0,.1); color: #2e7d32; }
