/*
Theme Name:   Hallo-Opa Magazin
Theme URI:    https://hallo-opa.de
Description:  Hochwertiges Magazin-Theme für aktive Großväter – Waldgrün & Gold
Author:       Hallo-Opa.de
Version:      1.0.0
Text Domain:  hallo-opa
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

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

:root {
  --ho-gruen:        #1B4332;
  --ho-gold:         #D4860A;
  --ho-creme:        #F6FAF4;
  --ho-sand:         #D8EDD0;
  --ho-text-dunkel:  #0D2818;
  --ho-text-mitte:   #2D6A4F;
  --ho-text-hell:    #74B08A;
  --ho-weiss:        #FFFFFF;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--ho-creme);
  color: var(--ho-text-dunkel);
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--ho-text-dunkel);
}

a { color: var(--ho-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ho-gruen); }
img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ── */
#site-header {
  background: var(--ho-weiss);
  border-bottom: 1px solid var(--ho-sand);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: 1rem;
  padding: 0 2rem; height: 90px; overflow: hidden;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; font-weight: 700;
  color: var(--ho-gruen); text-decoration: none;
  flex-shrink: 0; white-space: nowrap;
}
.site-logo span { color: var(--ho-gold); }

.main-nav {
  display: flex; align-items: center; flex-wrap: nowrap; flex-shrink: 1;
}
.main-nav a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--ho-text-mitte);
  text-decoration: none; margin-left: 1.2rem; transition: color .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--ho-gold); }
.main-nav .nav-cta {
  background: var(--ho-gold); color: var(--ho-weiss) !important;
  padding: 0.4rem 1rem; border-radius: 4px;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ho-gruen); border-radius: 2px;
}
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--ho-weiss); border-top: 1px solid var(--ho-sand);
  padding: 1rem 2rem 1.5rem;
}
.mobile-nav a {
  font-size: 1rem; font-weight: 600; text-transform: uppercase;
  color: var(--ho-text-mitte); padding: 0.7rem 0;
  border-bottom: 1px solid var(--ho-sand); text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: none; color: var(--ho-gold); }
.mobile-nav.open { display: flex; }

/* ── RUBRIKEN STRIP ── */
.rubrik-strip {
  background: var(--ho-gruen);
  display: flex; justify-content: center;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rubrik-strip::-webkit-scrollbar { display: none; }
.rubrik-strip a {
  color: rgba(255,255,255,0.72); text-decoration: none;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.8rem 1.4rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap; transition: color .2s, background .2s;
}
.rubrik-strip a:hover, .rubrik-strip a.active {
  color: var(--ho-weiss); background: rgba(255,255,255,0.08);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #081C0F 0%, #1B4332 60%, #2D6A4F 100%);
  color: var(--ho-weiss);
  padding: 5rem 2rem 4rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-label {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ho-gold); margin-bottom: 1rem; font-weight: 600;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.18; margin-bottom: 1.2rem;
}
.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.82);
  max-width: 540px; margin: 0 auto 2rem;
}
.btn-primary {
  display: inline-block; background: var(--ho-gold); color: var(--ho-weiss);
  padding: 0.8rem 2rem; border-radius: 4px; font-weight: 600;
  text-decoration: none; font-size: 0.95rem; transition: background .2s;
}
.btn-primary:hover { background: #b86e08; color: var(--ho-weiss); }

/* ── MAIN GRID ── */
.main-grid {
  max-width: 1200px; margin: 3rem auto;
  display: grid; grid-template-columns: 1fr 320px;
  gap: 3rem; padding: 0 2rem;
  align-items: start;
}

/* ── ARTIKEL ── */
.section-label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ho-text-hell); font-weight: 700;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--ho-gold);
  display: inline-block; margin-bottom: 1.5rem;
}

.article-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-bottom: 2.5rem;
}
.article-featured img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px;
}
.article-meta {
  font-size: 0.75rem; color: var(--ho-gold);
  font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.article-featured h2 {
  font-size: 1.7rem; margin-bottom: 0.7rem;
}
.article-featured p { color: var(--ho-text-mitte); font-size: 0.95rem; margin-bottom: 1rem; }
.read-more { color: var(--ho-gold); font-weight: 600; font-size: 0.88rem; }
.read-more:hover { text-decoration: underline; color: var(--ho-gold); }

hr.divider { border: none; border-top: 1px solid var(--ho-sand); margin: 1.5rem 0; }

.article-list { display: flex; flex-direction: column; gap: 1.5rem; }
.article-small {
  display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: start;
}
.article-small img {
  width: 90px; aspect-ratio: 1; object-fit: cover; border-radius: 4px;
}
.article-small h3 {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  line-height: 1.3; margin-top: 0.2rem;
}

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.sidebar-box {
  background: var(--ho-weiss); border-radius: 8px;
  padding: 1.5rem; border: 1px solid var(--ho-sand);
}
.sidebar-box:empty,
.sidebar-box:not(:has(*)) { display: none; }
.newsletter-box {
  background: linear-gradient(145deg, var(--ho-gruen), #0D2818);
  color: var(--ho-weiss); border-radius: 8px;
  padding: 1.8rem 1.8rem 0.8rem; overflow: hidden;
}
.newsletter-box h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
.newsletter-box p { font-size: 0.9rem; color: rgba(255,255,255,0.78); margin-bottom: 1rem; }
.newsletter-box input {
  width: 100%; padding: 0.65rem 1rem; border-radius: 4px; border: none;
  font-family: inherit; font-size: 0.9rem; margin-bottom: 0.7rem;
}
.newsletter-box button {
  width: 100%; background: var(--ho-gold); color: white; border: none;
  padding: 0.65rem; border-radius: 4px; font-weight: 600;
  cursor: pointer; font-family: inherit; font-size: 0.9rem;
}
.newsletter-box iframe {
  margin-bottom: -30px !important;
  border-radius: 0 0 8px 8px;
}
.quote-box { background: var(--ho-sand); border-radius: 8px; padding: 1.5rem; }
.quote-box blockquote {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.05rem; color: var(--ho-gruen); line-height: 1.5;
}
.quote-box cite {
  display: block; margin-top: 0.6rem;
  font-size: 0.82rem; color: var(--ho-text-hell); font-style: normal;
}
.popular-list { list-style: none; counter-reset: pop; }
.popular-list li {
  counter-increment: pop;
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.75rem 0; border-bottom: 1px solid var(--ho-sand);
}
.popular-list li:last-child { border-bottom: none; }
.popular-list li::before {
  content: counter(pop);
  font-family: 'Playfair Display', serif; font-size: 1.3rem;
  color: var(--ho-sand); font-weight: 700; min-width: 24px; line-height: 1.2;
}
.popular-list li a { font-size: 0.9rem; line-height: 1.35; font-weight: 600; color: var(--ho-text-dunkel); }
.popular-list li a:hover { color: var(--ho-gold); }

/* ── THEMEN BAND ── */
.themen-band { background: var(--ho-sand); padding: 3rem 2rem; }
.themen-inner { max-width: 1200px; margin: 0 auto; }
.themen-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 1.5rem;
}
.thema-card {
  background: var(--ho-weiss); border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(27,67,50,0.08); transition: transform .2s;
}
.thema-card:hover { transform: translateY(-4px); }
.thema-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.thema-card-body { padding: 1rem; }
.thema-card-body h3 { font-size: 0.95rem; margin-top: 0.3rem; line-height: 1.3; }

/* ── SIDEBAR ÜBERSCHRIFTEN ── */
.sidebar .widget-title,
.sidebar h2, .sidebar h3, .sidebar h4,
.sidebar-box h2, .sidebar-box h3, .sidebar-box h4,
.widget-area h2, .widget-area h3, .widget-area h4,
.widget h2, .widget h3, .widget h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ho-gruen) !important;
  border-bottom: 2px solid var(--ho-gruen);
  padding-bottom: 0.5rem; margin-bottom: 1rem;
}

/* ── SINGLE POST ── */
.post-container {
  max-width: 980px; margin: 3rem auto; padding: 0 2rem;
}
.post-header { margin-bottom: 2rem; }
.post-header .article-meta { margin-bottom: 0.8rem; }
.post-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.post-thumbnail { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 2rem; }
.post-content { font-size: 1.05rem; line-height: 1.85; }
.post-content p { margin-bottom: 1.4rem; }
.post-content h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.post-content h3 { font-size: 1.3rem; margin: 1.5rem 0 0.8rem; }
.post-content ul,
.post-content ol,
.entry-content ul,
.entry-content ol,
.wp-block-list {
  padding-left: 2rem;
  margin-bottom: 1.4rem;
}
.post-content ul li,
.post-content ol li,
.entry-content ul li,
.entry-content ol li {
  margin-bottom: 0.4rem;
  padding-left: 0.3rem;
}
.post-content blockquote {
  border-left: 4px solid var(--ho-gold); padding-left: 1.5rem;
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.15rem; color: var(--ho-gruen); margin: 2rem 0;
}

/* ── FOOTER ── */
#site-footer {
  background: var(--ho-text-dunkel); color: rgba(255,255,255,0.65);
  padding: 3rem 2rem 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: white; margin-bottom: 0.7rem;
  display: block;
}
.footer-logo span { color: var(--ho-gold); }
.footer-col h4 {
  color: white; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 0.8rem;
  font-family: 'Source Sans 3', sans-serif;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.55);
  font-size: 0.88rem; margin-bottom: 0.4rem;
}
.footer-col a:hover { color: var(--ho-gold); }
.footer-widget p,
.footer-widget ul { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-widget ul { list-style: none; }
.footer-widget ul li { margin-bottom: 0.4rem; }
.footer-widget ul li a { color: rgba(255,255,255,0.6); }
.footer-widget ul li a:hover { color: var(--ho-gold); }
.footer-widget h4 { color: white; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem; font-family: 'Source Sans 3', sans-serif; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  font-size: 0.82rem; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .main-grid { grid-template-columns: 1fr; }
  .article-featured { grid-template-columns: 1fr; }
  .themen-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .rubrik-strip { display: none; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .themen-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .header-inner { padding: 0 1rem; }
  .main-grid { padding: 0 1rem; }
}
