/*
 Theme Name: Kind und Koffer
 Description: Custom theme for kind-und-koffer.de - Family travel blog by Janine
 Version: 1.0
 Author: Daniel Trumpp
 Text Domain: kuk
*/

:root {
  --primary: #0BB4AA;
  --primary-light: #E6F7F6;
  --primary-dark: #089A91;
  --accent: #FF8C69;
  --accent-light: #FFF0EB;
  --bg: #F9FAFD;
  --bg-card: #FFFFFF;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --border: rgba(0,0,0,0.06);
  --shadow: 0 2px 16px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 32px rgba(11,180,170,0.12);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; }
.site-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,250,253,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); height: 72px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.nav-logo img { height: 44px; width: auto; }
.nav-logo span { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-light); font-size: 15px; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: white; padding: 10px 24px;
  border-radius: 100px; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); color: white; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }
.nav-mobile { display: none; }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary); padding: 6px 16px;
  border-radius: 100px; font-size: 13px; font-weight: 700; margin-bottom: 24px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.hero-tagline .dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(36px, 4vw, 50px); line-height: 1.15; margin-bottom: 20px; font-weight: 700; }
.hero h1 .highlight { color: var(--primary); }
.hero-desc { font-size: 17px; color: var(--text-light); margin-bottom: 32px; max-width: 480px; }
.hero-stats { display: flex; gap: 32px; margin-bottom: 32px; }
.stat { background: var(--bg-card); padding: 16px 24px; border-radius: 16px; box-shadow: var(--shadow); text-align: center; min-width: 100px; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--primary); font-weight: 700; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; font-weight: 700; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary); color: white; padding: 14px 32px;
  border-radius: 100px; text-decoration: none; font-weight: 700; font-size: 15px;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); color: white; }
.btn-ghost {
  background: transparent; color: var(--text); padding: 14px 32px;
  border-radius: 100px; text-decoration: none; font-weight: 700; font-size: 15px;
  border: 2px solid var(--border); transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.hero-visual { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .badge {
  position: absolute; bottom: 20px; left: 20px;
  background: white; padding: 12px 20px; border-radius: 14px;
  box-shadow: var(--shadow); font-size: 14px; font-weight: 700;
}
.hero-visual .badge small { color: var(--text-muted); font-weight: 500; display: block; font-size: 12px; }

/* ===== AUTHOR STRIP ===== */
.author-strip {
  padding: 32px 0; display: flex; align-items: center; gap: 20px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-light); flex-shrink: 0; }
.author-info { flex: 1; }
.author-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; }
.author-bio { font-size: 14px; color: var(--text-light); }
.author-social { display: flex; gap: 12px; }
.author-social a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 16px; transition: background 0.2s;
}
.author-social a:hover { background: var(--primary); color: white; }

/* ===== SECTIONS ===== */
.section { padding: 48px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; }
.section-link { color: var(--primary); text-decoration: none; font-weight: 700; font-size: 15px; }
.section-link:hover { text-decoration: underline; }

/* ===== REGION CARDS ===== */
.regions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.region-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer; transition: transform 0.3s;
}
.region-card:hover { transform: translateY(-4px); }
.region-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.region-card:hover img { transform: scale(1.05); }
.region-card .region-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  padding: 40px 16px 16px; color: white;
}
.region-card .region-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; }
.region-card .region-count { font-size: 13px; opacity: 0.85; margin-top: 4px; }
.region-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 48px; background: linear-gradient(135deg, var(--primary-light), #d4f5f3);
}

/* ===== FEATURED POST ===== */
.featured-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow 0.3s;
}
.featured-card:hover { box-shadow: var(--shadow-hover); }
.featured-img { overflow: hidden; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; transition: transform 0.5s; }
.featured-card:hover .featured-img img { transform: scale(1.03); }
.featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.featured-meta .cat { color: var(--primary); }
.featured-body h2 { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 16px; line-height: 1.3; font-weight: 700; }
.featured-body h2 a { color: var(--text); text-decoration: none; }
.featured-body h2 a:hover { color: var(--primary); }
.featured-excerpt { color: var(--text-light); margin-bottom: 24px; font-size: 15px; }
.read-link { color: var(--primary); text-decoration: none; font-weight: 700; font-size: 15px; }
.read-link:hover { text-decoration: underline; }

/* ===== ARTICLE GRID ===== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-img { aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.card-tag.accent { background: var(--accent-light); color: var(--accent); }
.card-body h3 { font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 8px; line-height: 1.3; font-weight: 700; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a:hover { color: var(--primary); }
.card-excerpt { color: var(--text-light); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-date { font-size: 13px; color: var(--text-muted); }

/* ===== CTA CARD (Berater, Newsletter) ===== */
.cta-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius); padding: 48px; color: white;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.cta-card h2 { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 16px; font-weight: 700; }
.cta-card p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; line-height: 1.6; }
.btn-white {
  background: white; color: var(--primary-dark); padding: 14px 32px;
  border-radius: 100px; text-decoration: none; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); color: var(--primary-dark); }
.cta-preview { background: rgba(255,255,255,0.15); border-radius: 16px; padding: 24px; }
.chat-bubble { background: rgba(255,255,255,0.2); padding: 12px 16px; border-radius: 14px; margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
.chat-bubble.reply { background: white; color: var(--text); }

/* ===== NEWSLETTER ===== */
.newsletter-card {
  background: var(--primary-light); border-radius: var(--radius); padding: 48px; text-align: center;
}
.newsletter-card h2 { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 12px; font-weight: 700; }
.newsletter-card p { color: var(--text-light); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 14px 20px; border: 2px solid var(--border); border-radius: 100px;
  font-size: 15px; outline: none; background: white; font-family: inherit;
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form button {
  background: var(--primary); color: white; border: none; padding: 14px 28px;
  border-radius: 100px; font-weight: 700; cursor: pointer; font-size: 15px;
  font-family: inherit; transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--primary-dark); }
.newsletter-msg { margin-top: 12px; font-size: 14px; }
.newsletter-msg.success { color: var(--primary); }
.newsletter-msg.error { color: var(--accent); }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--text-light); background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== SINGLE POST ===== */
.single-header { text-align: center; padding: 48px 0 32px; max-width: 720px; margin: 0 auto; }
.single-meta { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 16px; }
.single-meta .cat { color: var(--primary); }
.single-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin-bottom: 16px; font-weight: 700; }
.single-featured-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }
.single-featured-img img { width: 100%; display: block; }
.entry-content { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.8; color: var(--text); }
.entry-content h2 { font-family: 'Playfair Display', serif; font-size: 28px; margin: 40px 0 16px; font-weight: 700; }
.entry-content h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin: 32px 0 12px; font-weight: 700; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin-bottom: 20px; padding-left: 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote { border-left: 4px solid var(--primary); padding: 16px 24px; margin: 24px 0; background: var(--primary-light); border-radius: 0 12px 12px 0; font-style: italic; color: var(--text-light); }
.entry-content img { border-radius: 12px; margin: 24px 0; }
.entry-content a { color: var(--primary); text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border); padding: 32px 0;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: 14px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

/* ===== CATEGORY FILTERS ===== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 700;
  text-decoration: none; color: var(--text-light); background: var(--bg-card);
  border: 1px solid var(--border); transition: all 0.2s; cursor: pointer;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 120px 24px; }
.error-page h1 { font-family: 'Playfair Display', serif; font-size: 72px; color: var(--primary); margin-bottom: 16px; }
.error-page p { font-size: 18px; color: var(--text-light); margin-bottom: 32px; }

/* ===== COMMENTS ===== */
.comments-area { margin-top: 48px; }
.comments-area h2, .comment-respond h3 {
  font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; margin-bottom: 24px;
}
.comment-list { list-style: none; padding: 0; }
.comment-list .comment {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px;
}
.comment-list .comment-author { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.comment-list .comment-author img { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.comment-list .comment-metadata { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.comment-list .comment-metadata a { color: var(--text-muted); text-decoration: none; }
.comment-list .comment-content { font-size: 15px; line-height: 1.7; color: var(--text); }
.comment-list .reply a {
  font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: none;
}
.comment-list .reply a:hover { text-decoration: underline; }
.comment-respond { margin-top: 32px; }
.comment-respond label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.comment-respond .logged-in-as { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.comment-respond .logged-in-as a { color: var(--primary); }
.comment-respond .comment-notes { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: 'Nunito', sans-serif; color: var(--text);
  background: var(--bg); outline: none; transition: border-color 0.2s;
  margin-bottom: 12px;
}
.comment-respond input:focus, .comment-respond textarea:focus { border-color: var(--primary); }
.comment-respond textarea { min-height: 140px; resize: vertical; }
.comment-respond .form-submit input[type="submit"],
.comment-respond .submit {
  background: var(--primary); color: white; border: none; padding: 14px 32px;
  border-radius: 100px; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'Nunito', sans-serif; transition: all 0.2s;
}
.comment-respond .form-submit input[type="submit"]:hover,
.comment-respond .submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.comment-respond .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.comment-respond .comment-form-cookies-consent input { accent-color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0; gap: 32px; }
  .featured-card { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; padding: 32px; }
  .article-grid { grid-template-columns: 1fr; }
  .regions-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile.open { display: flex; flex-direction: column; gap: 16px; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-mobile.open a { font-size: 16px; font-weight: 600; color: var(--text); text-decoration: none; }
  .author-strip { flex-direction: column; text-align: center; }
  .hero-stats { gap: 16px; }
  .stat { padding: 12px 16px; }
  .newsletter-form { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
