/*
Theme Name: stift und limo
Theme URI: https://example.com
Author: Familie unterwegs
Description: Reiseblog-Theme im Stil von stift und limo — Newsreader/Mulish, cremefarbener Hintergrund, Teal und Gelb. Lokale Fonts, keine externen Anfragen.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: stiftundlimo
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fbf7ef;
  color: #3a3530;
  font-family: 'Mulish', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.75;
}
a { color: #235f59; }
a:hover { color: #2c7a73; }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.sl-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,239,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ece2cf;
}
.sl-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 13px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.sl-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.sl-brand img, .sl-logo, .custom-logo {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background: #fff; border: 1px solid #ece2cf; flex: none;
}
.sl-brand-name {
  font-family: 'Newsreader', serif; font-size: 21px; font-weight: 600;
  color: #235f59; letter-spacing: .01em;
}
.sl-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.sl-nav a { font: 600 15px 'Mulish'; color: #3a3530; text-decoration: none; }
.sl-nav a:hover { color: #2c7a73; }
.sl-nav .current-menu-item > a, .sl-nav .current_page_item > a {
  font-weight: 700; color: #2c7a73;
  border-bottom: 2px solid #f2cf3b; padding-bottom: 2px;
}

/* ---------- Seitenkopf (Bloglisten) ---------- */
.sl-pagehead { position: relative; overflow: hidden; border-bottom: 1px solid #ece2cf; }
.sl-pagehead::before {
  content: ""; position: absolute; top: -140px; right: -100px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,207,59,.2), transparent 65%);
  pointer-events: none;
}
.sl-pagehead-inner { max-width: 1200px; margin: 0 auto; padding: 56px 28px 44px; position: relative; }
.sl-pagetitle {
  font-family: 'Newsreader', serif; font-weight: 600; font-size: 52px;
  line-height: 1.06; letter-spacing: -.015em; color: #2b2620; margin: 0;
}
.sl-pagetitle em, .sl-pagetitle span { font-style: italic; color: #2c7a73; }
.sl-pagesub { font-size: 17px; line-height: 1.6; color: #6f6757; max-width: 560px; margin: 14px 0 0; }

/* ---------- Beitragskarten ---------- */
.sl-grid-wrap { max-width: 1200px; margin: 0 auto; padding: 44px 28px 60px; }
.sl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sl-card {
  background: #fff; border: 1px solid #ece2cf; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(58,53,48,.05);
  display: flex; flex-direction: column;
}
.sl-card-media {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg, #f1ead8, #f1ead8 10px, #ece3cf 10px, #ece3cf 20px);
  text-decoration: none;
}
.sl-card-media img { width: 100%; height: 100%; object-fit: cover; }
.sl-ph { font: 700 10px 'Mulish'; letter-spacing: .12em; color: #b3a988; }
.sl-pill {
  position: absolute; top: 13px; left: 13px;
  background: #e7f0ee; color: #235f59;
  font: 700 11px 'Mulish'; letter-spacing: .04em;
  padding: 6px 11px; border-radius: 999px;
}
.sl-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sl-meta { font: 700 12px 'Mulish'; color: #b3a988; letter-spacing: .03em; }
.sl-card-title { font-family: 'Newsreader', serif; font-weight: 600; font-size: 21px; line-height: 1.25; margin: 0; }
.sl-card-title a { color: #2b2620; text-decoration: none; }
.sl-card-title a:hover { color: #235f59; }
.sl-excerpt { color: #6f6757; font-size: 14.5px; line-height: 1.55; }
.sl-excerpt p { margin: 0; }
.sl-more { margin-top: auto; color: #235f59; font: 700 14px 'Mulish'; text-decoration: none; }
.sl-more:hover { opacity: .75; }

.sl-pagination { margin-top: 36px; text-align: center; font: 600 14px 'Mulish'; }
.sl-pagination .page-numbers {
  display: inline-block; padding: 8px 14px; margin: 0 3px;
  background: #fff; border: 1px solid #ece2cf; border-radius: 999px;
  color: #235f59; text-decoration: none;
}
.sl-pagination .page-numbers.current { background: #2c7a73; color: #fff; border-color: #2c7a73; }

/* ---------- Einzelbeitrag / Seite ---------- */
.sl-article-head { max-width: 760px; margin: 0 auto; padding: 56px 28px 0; }
.sl-breadcrumb { font: 600 13px 'Mulish'; color: #a99f87; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sl-breadcrumb a { color: #a99f87; text-decoration: none; }
.sl-breadcrumb a:hover { color: #2c7a73; }
.sl-article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.sl-article-meta .sl-pill { position: static; }
.sl-article-meta .sl-date { font: 700 12.5px 'Mulish'; color: #b3a988; }
.sl-article-title {
  font-family: 'Newsreader', serif; font-weight: 600; font-size: 48px;
  line-height: 1.08; letter-spacing: -.015em; color: #2b2620; margin: 16px 0 0;
}
.sl-authorband {
  display: flex; align-items: center; gap: 12px; margin: 26px 0 0; padding: 18px 0;
  border-top: 1px dashed #ddd0b6; border-bottom: 1px dashed #ddd0b6;
}
.sl-authorband img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid #ece2cf; flex: none; }
.sl-author-name { font: 700 14px 'Mulish'; color: #2b2620; }
.sl-author-sub { font: 500 13px 'Mulish'; color: #a99f87; }

.sl-hero-img { max-width: 1000px; margin: 36px auto 0; padding: 0 28px; }
.sl-hero-img img { width: 100%; border-radius: 16px; border: 1px solid #ece2cf; }

.sl-content { max-width: 680px; margin: 0 auto; padding: 44px 28px 0; font-size: 17px; line-height: 1.75; color: #4a443d; }
.sl-content > p:first-child::first-letter {
  font-family: 'Newsreader', serif; font-size: 52px; line-height: .9;
  float: left; margin: 6px 10px 0 0; color: #2c7a73; font-weight: 600;
}
.sl-content h2 { font-family: 'Newsreader', serif; font-size: 28px; font-weight: 600; color: #2b2620; margin: 36px 0 14px; }
.sl-content h3 { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 600; color: #2b2620; margin: 30px 0 12px; }
.sl-content p { margin: 0 0 22px; }
.sl-content ul, .sl-content ol { margin: 0 0 22px; padding-left: 22px; }
.sl-content li { margin-bottom: 8px; }
.sl-content blockquote {
  margin: 30px 0; padding: 22px 26px; background: #fff;
  border-left: 4px solid #f2cf3b; border-radius: 0 12px 12px 0;
  font-family: 'Newsreader', serif; font-style: italic; font-size: 20px;
  line-height: 1.5; color: #235f59;
}
.sl-content blockquote p { margin: 0; }
.sl-content img { border-radius: 14px; border: 1px solid #ece2cf; }
.sl-content figcaption { font: 500 13px 'Mulish'; color: #a99f87; text-align: center; margin-top: 8px; }
.sl-content .wp-block-gallery, .sl-content .gallery { margin: 30px 0; }

.sl-tags { max-width: 680px; margin: 0 auto; padding: 20px 28px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sl-tags-label { font: 700 13px 'Mulish'; color: #a99f87; letter-spacing: .06em; }
.sl-tags a {
  background: #fff; border: 1px solid #ece2cf; color: #235f59;
  font: 600 12.5px 'Mulish'; padding: 6px 12px; border-radius: 999px; text-decoration: none;
}
.sl-tags a:hover { border-color: #2c7a73; }

.sl-nextprev { max-width: 1000px; margin: 0 auto; padding: 52px 28px 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sl-np-card {
  background: #fff; border: 1px solid #ece2cf; border-radius: 14px; padding: 22px 24px;
  text-decoration: none; box-shadow: 0 8px 24px rgba(58,53,48,.05); display: block;
}
.sl-np-card:hover { border-color: #2c7a73; }
.sl-np-card.sl-next { text-align: right; }
.sl-np-label { font: 700 12px 'Mulish'; color: #a99f87; letter-spacing: .06em; }
.sl-np-title { font-family: 'Newsreader', serif; font-size: 19px; font-weight: 600; color: #2b2620; margin-top: 8px; }

/* ---------- Statische Seite ---------- */
.sl-page { max-width: 760px; margin: 0 auto; padding: 56px 28px 70px; }
.sl-page .sl-article-title { font-size: 42px; }
.sl-page .sl-content { padding: 32px 0 0; max-width: none; }

/* ---------- Footer ---------- */
.sl-footer { background: #f5efe2; border-top: 1px solid #ece2cf; margin-top: 40px; }
.sl-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 44px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.sl-footer .sl-brand img { width: 40px; height: 40px; }
.sl-footer .sl-brand-name { font-size: 18px; }
.sl-footer-nav ul { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.sl-footer-nav a { font: 600 14px 'Mulish'; color: #6f6757; text-decoration: none; }
.sl-footer-nav a:hover { color: #2c7a73; }
.sl-copy { font: 500 13px 'Mulish'; color: #a99f87; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .sl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .sl-pagetitle { font-size: 40px; }
  .sl-article-title { font-size: 36px; }
  .sl-grid { grid-template-columns: 1fr; }
  .sl-nextprev { grid-template-columns: 1fr; }
  .sl-nav ul { gap: 18px; }
  .sl-nav a { font-size: 14px; }
}
