/*
Theme Name: Verstehdeinkind
Theme URI: https://verstehdeinkind.de
Author: verstehdeinkind.de
Description: Warmes, persönliches Theme für verstehdeinkind.de — ein Blog für Eltern, die ihre Kinder wirklich verstehen wollen.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: verstehdeinkind
*/

/* =============================================
   GOOGLE FONTS
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;1,6..12,300&display=swap');

/* =============================================
   CSS VARIABLES
============================================= */
:root {
  --navy:        #2B3A5C;
  --navy-light:  #3C4A6B;
  --blush:       #B47A8A;
  --blush-light: #C9A0AC;
  --blush-dark:  #A85E7A;
  --cream:       #F2EEE9;
  --cream-dark:  #E8E2DB;
  --card-bg:     #F0ECF0;
  --white:       #ffffff;
  --text-dark:   #2B3A5C;
  --text-mid:    #5a6070;
  --text-light:  #8a8f9a;
  --border:      rgba(0,0,0,0.08);
  --freebie-bg:  #EDF0F6;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   40px;
  --font-heading: 'Nunito', sans-serif;
  --font-body:    'Nunito Sans', sans-serif;
  --shadow-btn:   0 4px 18px rgba(180,100,130,0.28);
  --shadow-btn-sm: 0 3px 12px rgba(180,100,130,0.22);
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blush); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.35;
}

p { margin-bottom: 1.2rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }

/* =============================================
   LAYOUT
============================================= */
.site-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* =============================================
   NAVIGATION
============================================= */
.site-header {
  border-bottom: 0.5px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .site-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.2px;
}
.site-logo:hover { text-decoration: none; color: var(--navy-light); }

.main-navigation ul {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-navigation a {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.main-navigation a:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.3s;
}

/* =============================================
   BUTTONS
============================================= */
/* Override WordPress classic-themes.min.css button defaults */
.wp-block-button__link,
.wp-block-file__button {
  border-radius: 10px !important;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px !important;
  background: linear-gradient(135deg, #D4758A 0%, #B03E6A 100%) !important;
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(176,62,106,0.38) !important;
  text-decoration: none !important;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.2px;
}
.btn-primary:hover { opacity: 0.93; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(176,62,106,0.42); text-decoration: none; color: var(--white); }

.btn-outline {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  border-radius: 10px;
  border: 1px solid var(--navy);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }

.btn-freebie {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #D4758A 0%, #B03E6A 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-freebie:hover { opacity: 0.93; transform: translateY(-1px); text-decoration: none; color: var(--white); }

/* =============================================
   HERO SECTION
============================================= */
.hero {
  padding: 64px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-supertitle {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 36px;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.35;
}

.hero-title em {
  font-style: italic;
  color: var(--blush);
  font-weight: 300;
}

.hero-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 30px;
}

.hero-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.hero-card-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 12px;
  font-weight: 400;
}

.hero-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.45;
}

.personal-note {
  background: var(--white);
  border-left: 2.5px solid var(--blush-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-mid);
  font-style: italic;
  font-weight: 300;
}

.personal-note-author {
  display: block;
  font-size: 12px;
  color: var(--blush);
  margin-top: 10px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* =============================================
   SECTION HEADERS
============================================= */
.section-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 6px;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 28px;
}

/* =============================================
   BLOG SECTION (homepage)
============================================= */
.blog-section {
  padding: 48px 0;
  border-top: 0.5px solid var(--border);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(43,58,92,0.08); }

.post-card-thumb {
  height: 90px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body { padding: 16px; }

.post-card-cat {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 6px;
  display: block;
  font-weight: 400;
  text-decoration: none;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
}
.post-card-title a { color: var(--navy); text-decoration: none; }
.post-card-title a:hover { color: var(--blush); }

.post-card-note {
  font-size: 12px;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.6;
  border-left: 2px solid var(--cream-dark);
  padding-left: 8px;
  font-weight: 300;
}

/* =============================================
   FREEBIE SECTION
============================================= */
.freebie-section {
  padding: 0 0 48px;
}

.freebie-box {
  background: var(--freebie-bg);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.freebie-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.freebie-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.8;
}

.freebie-content {}

.freebie-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}

.freebie-body {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.7;
  font-weight: 300;
}

/* =============================================
   SINGLE POST
============================================= */
.post-header {
  padding: 48px 0 32px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 40px;
}

.post-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.post-meta a { color: var(--blush); text-decoration: none; }

.post-title-single {
  font-size: 38px;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 20px;
}

.post-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 48px;
}

.post-content h2 { font-size: 24px; margin: 2.5rem 0 1rem; }
.post-content h3 { font-size: 20px; margin: 2rem 0 0.8rem; }
.post-content p { margin-bottom: 1.4rem; }
.post-content a { color: var(--blush); }
.post-content ul, .post-content ol { margin-bottom: 1.4rem; }
.post-content li { margin-bottom: 0.4rem; }

.post-content blockquote {
  border-left: 3px solid var(--blush-light);
  padding: 12px 20px;
  margin: 2rem 0;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-mid);
}

/* Personal note inside post */
.post-personal-note {
  background: var(--cream);
  border-left: 3px solid var(--blush);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 2.5rem 0;
  font-style: italic;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
}

.post-personal-note::before {
  content: "Persönliche Anmerkung";
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blush);
  font-style: normal;
  font-weight: 400;
  margin-bottom: 10px;
}

/* =============================================
   SIDEBAR
============================================= */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0;
}

.sidebar-widget {
  margin-bottom: 36px;
}

.sidebar-widget-title {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 14px;
  font-weight: 400;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border);
}

.sidebar-post-list { list-style: none; padding: 0; }
.sidebar-post-list li { padding: 8px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; }
.sidebar-post-list a { color: var(--navy); text-decoration: none; font-weight: 300; }
.sidebar-post-list a:hover { color: var(--blush); }

.sidebar-freebie {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.sidebar-freebie-title {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 8px;
}

.sidebar-freebie-body {
  font-size: 12px;
  color: var(--text-mid);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* =============================================
   CATEGORY / ARCHIVE PAGE
============================================= */
.archive-header {
  padding: 48px 0 32px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 40px;
}

.archive-title {
  font-size: 32px;
  font-weight: 300;
  color: var(--navy);
}

.post-list { display: flex; flex-direction: column; gap: 32px; }

.post-list-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 0.5px solid var(--border);
}

.post-list-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card-bg);
  height: 120px;
}

.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-list-cat {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 6px;
  display: block;
  font-weight: 400;
  text-decoration: none;
}

.post-list-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.post-list-title a { color: var(--navy); text-decoration: none; }
.post-list-title a:hover { color: var(--blush); }

.post-list-excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 12px;
  font-weight: 300;
}

.read-more {
  font-size: 13px;
  color: var(--blush);
  font-weight: 400;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* =============================================
   DOWNLOADS PAGE
============================================= */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.download-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--white);
}

.download-card-tag {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 8px;
  font-weight: 400;
}

.download-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 8px;
}

.download-card-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
  font-weight: 300;
}

.download-card.is-free .download-card-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--blush);
  font-size: 11px;
  font-weight: 400;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 32px 0;
  margin-top: 48px;
}

.site-footer .site-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 300;
}
.footer-links a:hover { color: var(--navy); }

/* =============================================
   PAGINATION
============================================= */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 32px 0;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  color: var(--navy);
  text-decoration: none;
  border: 0.5px solid var(--border);
  font-weight: 400;
}

.pagination .current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 28px; }
  .post-grid { grid-template-columns: 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .post-list-item { grid-template-columns: 1fr; }
  .post-list-thumb { height: 200px; }
  .downloads-grid { grid-template-columns: 1fr; }
  .freebie-box { flex-direction: column; text-align: center; }
  .main-navigation { display: none; }
  .main-navigation.is-open { display: block; width: 100%; padding: 16px 0; }
  .main-navigation.is-open ul { flex-direction: column; gap: 0; }
  .main-navigation.is-open li a { display: block; padding: 10px 0; border-bottom: 0.5px solid var(--border); }
  .nav-toggle { display: flex; }
  .site-header .site-container { flex-wrap: wrap; }
  .post-title-single { font-size: 28px; }
}
