/*
Theme Name: Kattenfontein
Theme URI: https://kattenfontein.be
Author: Dieter
Description: Ultralicht, mobielvriendelijk blogthema voor kattenfontein.be. Geen externe fonts, geen jQuery, razendsnel.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kattenfontein
Tags: blog, one-column, custom-menu, custom-logo, translation-ready
*/

:root {
  --kf-teal: #17707f;
  --kf-teal-dark: #0d4d59;
  --kf-water: #7ec6cf;
  --kf-aqua: #e9f5f6;
  --kf-amber: #e8963f;
  --kf-amber-deep: #b06a1d;
  --kf-amber-soft: #fdf3e6;
  --kf-ink: #1c2f33;
  --kf-grey: #5f7378;
  --kf-line: #d7e6e8;
  --kf-bg: #ffffff;
  --kf-radius: 12px;
  --kf-max: 720px;
  --kf-wide: 1080px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--kf-ink);
  background: var(--kf-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kf-teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--kf-teal-dark); }
:focus-visible { outline: 3px solid var(--kf-amber); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--kf-teal-dark);
  line-height: 1.25;
  margin: 1.6em 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); }
h3 { font-size: 1.2rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--kf-teal-dark); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header (sticky, licht glaseffect) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--kf-wide);
  margin: 0 auto;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-branding { display: flex; align-items: center; gap: .55rem; }
.site-branding a { text-decoration: none; display: flex; align-items: center; gap: .55rem; }
.custom-logo-link img, img.custom-logo { height: 46px; width: auto; }
.kf-drop { flex: 0 0 auto; }
.site-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kf-teal-dark);
  margin: 0;
}
.site-title .be { color: var(--kf-amber); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--kf-line); border-radius: 8px;
  padding: .45rem .7rem; font-size: 1rem; color: var(--kf-teal-dark); cursor: pointer;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; color: var(--kf-ink); font-weight: 500; font-size: .97rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--kf-teal); border-bottom-color: var(--kf-amber); }

@media (max-width: 782px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  .main-nav li { border-top: 1px solid var(--kf-line); }
  .main-nav a { display: block; padding: .75rem .25rem; border-bottom: none; }
}

.kf-ripple { display: block; width: 100%; height: 14px; color: var(--kf-aqua); }

/* ---------- Hero met illustratie en vallende druppels ---------- */
.kf-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--kf-aqua) 0%, #f6fbfc 70%, #ffffff 100%);
  padding: 2.75rem 1rem 0;
  text-align: center;
}
.kf-hero-inner { max-width: var(--kf-max); margin: 0 auto; position: relative; z-index: 1; }
.kf-hero h1 { margin-bottom: .35em; }
.kf-hero p { color: var(--kf-grey); font-size: 1.12rem; margin: 0 auto; max-width: 560px; font-style: italic; font-family: var(--font-display); }
.kf-hero-art { max-width: 480px; margin: 1.25rem auto 0; }
.kf-hero-art svg { width: 100%; height: auto; display: block; }
.kf-drop-anim {
  position: absolute; top: -22px; width: 11px; height: 15px;
  background: var(--kf-water);
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  opacity: 0;
  animation: kf-fall 6s linear infinite;
  pointer-events: none;
}
.kf-drop-anim:nth-of-type(1) { left: 10%; animation-delay: 0s; }
.kf-drop-anim:nth-of-type(2) { left: 50%; animation-delay: 2.1s; width: 8px; height: 11px; }
.kf-drop-anim:nth-of-type(3) { left: 86%; animation-delay: 3.9s; }
@keyframes kf-fall {
  0%   { transform: translateY(0) scale(.85); opacity: 0; }
  8%   { opacity: .4; }
  85%  { opacity: .3; }
  100% { transform: translateY(420px) scale(1); opacity: 0; }
}

/* ---------- Content ---------- */
.site-main { max-width: var(--kf-wide); margin: 0 auto; padding: 2rem 1rem 3rem; }
.content-narrow { max-width: var(--kf-max); margin: 0 auto; }

/* Artikeloverzicht */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.post-card {
  border: 1px solid var(--kf-line);
  border-radius: var(--kf-radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.post-card:hover {
  box-shadow: 0 10px 26px rgba(13, 77, 89, .14);
  transform: translateY(-3px);
  border-color: var(--kf-water);
}
.post-card .thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--kf-aqua); transition: transform .25s ease; }
.post-card:hover .thumb { transform: scale(1.03); }
.post-card > a:first-child { overflow: hidden; display: block; }
.post-card > a.card-art {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--kf-aqua) 0%, #d2ebee 100%);
}
.card-art {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--kf-aqua) 0%, #d2ebee 100%);
}
.card-art svg { width: 58px; height: 68px; }
.post-card-body { padding: 1.05rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.chip {
  align-self: flex-start;
  background: var(--kf-amber-soft); color: var(--kf-amber-deep);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 999px; text-decoration: none;
}
.chip:hover { background: var(--kf-amber); color: #fff; }
.post-card h2 { font-size: 1.18rem; margin: 0; }
.post-card h2 a { text-decoration: none; color: var(--kf-teal-dark); }
.post-card h2 a:hover { color: var(--kf-teal); }
.post-card .excerpt { color: var(--kf-grey); font-size: .95rem; margin: 0; }
.post-meta { font-size: .82rem; color: var(--kf-grey); text-transform: uppercase; letter-spacing: .05em; }

/* Uitgelicht (eerste artikel) */
@media (min-width: 783px) {
  .post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .post-card.featured > a:first-child, .post-card.featured > .card-art { height: 100%; }
  .post-card.featured .thumb, .post-card.featured .card-art { aspect-ratio: auto; height: 100%; min-height: 280px; }
  .post-card.featured .card-art svg { width: 92px; height: 108px; }
  .post-card.featured .post-card-body { padding: 2.2rem; justify-content: center; gap: .7rem; }
  .post-card.featured h2 { font-size: 1.65rem; }
  .post-card.featured .excerpt { font-size: 1.02rem; }
}

/* Artikel */
.entry-header { margin-bottom: 1.5rem; }
.entry-content { font-size: 1.0625rem; }
.entry-content > * { max-width: var(--kf-max); margin-left: auto; margin-right: auto; }
.entry-content img { border-radius: var(--kf-radius); }
.entry-content h2 { position: relative; padding-bottom: .4rem; }
.entry-content h2::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 58px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--kf-amber), var(--kf-water));
}
.entry-content ul li::marker { color: var(--kf-teal); }
.entry-content ol li::marker { color: var(--kf-amber-deep); font-weight: 700; }
.entry-content blockquote {
  border-left: 4px solid var(--kf-amber);
  background: var(--kf-amber-soft);
  margin: 1.5rem auto; padding: 1rem 1.25rem;
  border-radius: 0 var(--kf-radius) var(--kf-radius) 0;
  font-style: italic;
}
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--kf-line); padding: .6rem .75rem; text-align: left; }
.entry-content th { background: var(--kf-aqua); color: var(--kf-teal-dark); }
.entry-content tbody tr:nth-child(even) { background: #f6fbfc; }
.wp-block-button__link, .kf-btn {
  background: var(--kf-amber); color: #fff !important; border-radius: 999px;
  padding: .65rem 1.4rem; text-decoration: none; font-weight: 600; display: inline-block;
}
.wp-block-button__link:hover, .kf-btn:hover { background: #d3812a; }

/* Paginering */
.pagination { margin-top: 2.5rem; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span {
  display: inline-block; min-width: 2.4rem; padding: .45rem .6rem;
  border: 1px solid var(--kf-line); border-radius: 8px; text-decoration: none;
}
.pagination .current { background: var(--kf-teal); color: #fff; border-color: var(--kf-teal); }

/* Reacties (uitgeschakeld, stijlen behouden voor de zekerheid) */
.comments-area { max-width: var(--kf-max); margin: 3rem auto 0; border-top: 1px solid var(--kf-line); padding-top: 2rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border: 1px solid var(--kf-line); border-radius: var(--kf-radius); padding: 1rem 1.15rem; margin-bottom: 1rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--kf-line); border-radius: 8px; font: inherit;
}
.comment-form .submit { background: var(--kf-teal); color: #fff; border: 0; border-radius: 999px; padding: .65rem 1.5rem; font-weight: 600; cursor: pointer; }

/* Zoeken / 404 */
.search-form { display: flex; gap: .5rem; max-width: 480px; }
.search-form .search-field { flex: 1; padding: .6rem .8rem; border: 1px solid var(--kf-line); border-radius: 8px; font: inherit; }
.search-form .search-submit { background: var(--kf-teal); color: #fff; border: 0; border-radius: 8px; padding: .6rem 1rem; cursor: pointer; }

/* ---------- Footer met bellenpatroon ---------- */
.site-footer {
  background-color: var(--kf-teal-dark);
  background-image:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.07) 0 4px, transparent 5px),
    radial-gradient(circle at 30% 72%, rgba(255,255,255,.05) 0 3px, transparent 4px),
    radial-gradient(circle at 55% 38%, rgba(255,255,255,.06) 0 5px, transparent 6px),
    radial-gradient(circle at 76% 66%, rgba(255,255,255,.07) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 24%, rgba(255,255,255,.05) 0 4px, transparent 5px);
  color: #cfe6ea;
  margin-top: 3rem;
}
.kf-ripple-footer { display: block; width: 100%; height: 14px; color: var(--kf-teal-dark); }
.footer-inner {
  max-width: var(--kf-wide); margin: 0 auto; padding: 2.25rem 1rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-top: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center; padding: 1rem; font-size: .85rem; color: #9dc4cb;
}

/* WordPress-kern */
.alignwide { max-width: var(--kf-wide); }
.alignfull { max-width: none; width: 100%; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.sticky, .bypostauthor { display: revert; }
