/*
Theme Name: Carolina Stephan
Theme URI: https://carolina-stephan.de
Author: Carolina Stephan
Description: Minimales, schnelles Theme passend zum Design von carolina-stephan.de
Version: 1.0
License: GNU General Public License v2
Text Domain: carolina-stephan
*/

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --primary:      #a313af;
  --primary-dark: #8a0e94;
  --accent-bg:    #fce7fb;
  --accent-bg-2:  #f0e0ed;
  --text:         #1a1a2e;
  --muted:        #6b7280;
  --bg:           #f9f6fb;
  --card:         #ffffff;
  --border:       #e5e7eb;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 2px 16px rgba(0,0,0,0.07);
  --max-w:        760px;
  --max-w-wide:   1100px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 16px; }
h2 { font-size: clamp(22px, 4vw, 32px); margin-bottom: 14px; }
h3 { font-size: clamp(18px, 3vw, 24px); margin-bottom: 10px; }
p  { margin-bottom: 18px; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Nav ──────────────────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}
.site-header__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--primary); background: var(--accent-bg); text-decoration: none; }
.site-nav .nav-cta {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 7px 14px;
}
.site-nav .nav-cta:hover { background: var(--primary-dark); color: #fff; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .2s;
}
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 16px; width: 100%; }
}

/* ── Main Content ──────────────────────────────────────────────────────────── */
.site-main { padding: 48px 0 80px; }

/* ── Blog Index ────────────────────────────────────────────────────────────── */
.blog-header {
  text-align: center;
  margin-bottom: 48px;
}
.blog-header h1 { font-size: clamp(28px, 5vw, 40px); }
.blog-header p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

/* Article card */
.post-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 28px rgba(163,19,175,0.12); }
.post-card__thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb--placeholder {
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 40px;
}
.post-card__body { padding: 22px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.post-card__cat {
  background: var(--accent-bg);
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 6px;
}
.post-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--primary); text-decoration: none; }
.post-card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.post-card__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  align-self: flex-start;
}
.post-card__link:hover { text-decoration: underline; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}
.pagination a:hover { background: var(--accent-bg); border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Single Post ───────────────────────────────────────────────────────────── */
.post-header { margin-bottom: 40px; }
.post-header__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.post-header__cat {
  background: var(--accent-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: 6px;
}
.post-header__title {
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.2;
  margin-bottom: 16px;
}
.post-header__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  align-items: center;
}
.post-header__meta span::before { content: '· '; }
.post-header__meta span:first-child::before { content: ''; }
.post-header__thumb {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.post-header__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Article content */
.entry-content {
  font-size: 17px;
  line-height: 1.8;
}
.entry-content h2 { margin-top: 40px; margin-bottom: 16px; }
.entry-content h3 { margin-top: 32px; margin-bottom: 12px; }
.entry-content ul, .entry-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--accent-bg);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  font-size: 18px;
}
.entry-content img {
  border-radius: var(--radius-sm);
  margin: 24px auto;
}
.entry-content a { color: var(--primary); font-weight: 600; }
.entry-content strong { color: var(--text); }

/* ── Author Box ────────────────────────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 48px 0 32px;
}
.author-box__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid var(--accent-bg);
}
.author-box__name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.author-box__handle {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.author-box__bio { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 480px) {
  .author-box { flex-direction: column; }
  .author-box__photo { width: 56px; height: 56px; }
}

/* ── CTA Block ─────────────────────────────────────────────────────────────── */
.cta-block {
  border-radius: var(--radius);
  padding: 36px 32px;
  margin: 48px 0 0;
  text-align: center;
}
.cta-block.cta-pdf {
  background: var(--accent-bg);
  border: 1.5px solid #e0b8e8;
}
.cta-block.cta-kurs {
  background: var(--primary);
  color: #fff;
}
.cta-block .cta-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  opacity: .75;
}
.cta-block h3 {
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 12px;
}
.cta-block.cta-kurs h3 { color: #fff; }
.cta-block p { font-size: 15px; max-width: 480px; margin: 0 auto 24px; }
.cta-block.cta-kurs p { color: rgba(255,255,255,.88); }
.cta-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  transition: .2s;
}
.cta-pdf .cta-btn {
  background: var(--primary);
  color: #fff;
}
.cta-pdf .cta-btn:hover { background: var(--primary-dark); text-decoration: none; }
.cta-kurs .cta-btn {
  background: #fff;
  color: var(--primary);
}
.cta-kurs .cta-btn:hover { background: var(--accent-bg); text-decoration: none; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__copy { font-size: 13px; color: var(--muted); }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__links a { font-size: 13px; color: var(--muted); }
.site-footer__links a:hover { color: var(--primary); text-decoration: none; }

/* ── No posts ──────────────────────────────────────────────────────────────── */
.no-posts { text-align: center; padding: 80px 24px; color: var(--muted); }
.no-posts h2 { color: var(--text); margin-bottom: 12px; }
