:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #f7fbf9;
  --surface-dark: #0f1720;
  --surface-dark-2: #152231;
  --text: #14212b;
  --muted: #61707a;
  --line: #d9e3e0;
  --primary: #1aa06d;
  --primary-dark: #107651;
  --accent: #59b7ff;
  --warning: #b85c00;
  --shadow: 0 14px 40px rgba(15, 23, 32, 0.08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 32, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbfa 0%, var(--bg) 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-soft { padding: 76px 0; background: rgba(255,255,255,.45); }

.grid-2,
.grid-3,
.grid-4,
.hero-grid,
.story-grid,
.article-layout,
.two-col,
.project-content-layout {
  display: grid;
  gap: 1.4rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hero-grid,
.story-grid,
.two-col,
.article-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: center;
}

.project-content-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: start;
}

.muted { color: var(--muted); }
.small { font-size: .94rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .48rem .9rem;
  border-radius: 999px;
  background: rgba(26,160,109,.12);
  color: var(--primary-dark);
  font-size: .9rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

h1, h2, h3, h4 {
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 .95rem;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); }

p, ul, ol {
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

ul, ol { padding-left: 1.15rem; }

.btn-row {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #21c18a);
  box-shadow: 0 10px 25px rgba(26,160,109,.24);
}

.btn-secondary {
  background: rgba(255,255,255,.84);
  border-color: var(--line);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

.btn-ghost:hover { background: rgba(255,255,255,.08); }

.link {
  color: var(--primary-dark);
  font-weight: 800;
}

.card,
.panel,
.article-card,
.metric-card,
.newsletter,
.cta-banner,
.toc,
.sidebar-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(217,227,224,.95);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  min-width: 0;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(26,160,109,.14), rgba(89,183,255,.14));
  margin-bottom: .9rem;
}

.check-list { display: grid; gap: .9rem; }

.check-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}

.check-mark,
.timeline-mark,
.featured-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
}

.check-item.negative .check-mark {
  background: #e74c3c;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,23,32,.94);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}

.navbar {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  max-width: min(450px, 70vw);
}

.logo-header {
  max-height: 70px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-links a {
  color: rgba(255,255,255,.78);
  font-weight: 700;
  padding: .5rem .7rem;
  border-radius: 10px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.06);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .2rem;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: .2s ease;
}

.hero {
  padding: 76px 0 58px;
  background:
    radial-gradient(circle at top right, rgba(89,183,255,.14), transparent 28%),
    radial-gradient(circle at top left, rgba(26,160,109,.14), transparent 28%),
    linear-gradient(180deg, #11202d 0%, #162534 28%, #f4f7f6 28%, #f4f7f6 100%);
}

.hero-copy {
  color: #f7fbff;
  padding-top: 1rem;
}

.hero-copy p {
  max-width: 62ch;
  color: rgba(247,251,255,.78);
  font-size: 1.08rem;
}

.hero-copy .eyebrow {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.hero-copy .eyebrow::before {
  background: linear-gradient(135deg, #ffffff, #8bd9ff);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 1rem;
  min-width: 0;
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: .25rem;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  min-width: 0;
}

.showcase-card,
.floating-card,
.metric-card {
  position: absolute;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(217,227,224,.95);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.showcase-card {
  inset: 0;
  padding: 1.2rem;
  overflow: hidden;
}

.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.badge,
.small-tag,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 999px;
  font-weight: 800;
}

.badge {
  padding: .42rem .75rem;
  font-size: .82rem;
  color: var(--primary-dark);
  background: rgba(26,160,109,.1);
}

.small-tag {
  padding: .32rem .65rem;
  font-size: .75rem;
  color: var(--text);
  background: rgba(20,33,43,.06);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.chip {
  padding: .4rem .7rem;
  font-size: .78rem;
  color: var(--primary-dark);
  background: rgba(26,160,109,.09);
}

.mock-home {
  position: relative;
  min-height: 465px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f6fbf8, #eaf3ef);
  border: 1px solid var(--line);
  overflow: hidden;
}

.home-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,33,43,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,33,43,.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

.room {
  position: absolute;
  border-radius: 18px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(20,33,43,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.room::after {
  content: attr(data-room);
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}

.room-a { left: 6%; top: 7%; width: 41%; height: 32%; }
.room-b { left: 51%; top: 7%; width: 26%; height: 24%; }
.room-c { right: 6%; top: 7%; width: 13%; height: 24%; }
.room-d { left: 6%; bottom: 16%; width: 30%; height: 28%; }
.room-e { left: 40%; bottom: 16%; width: 39%; height: 28%; }
.room-f { right: 6%; bottom: 16%; width: 13%; height: 18%; }

.device {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 5px rgba(26,160,109,.12);
}

.floating-card {
  padding: 1rem 1.1rem;
  max-width: 260px;
}

.flow-card { right: -10px; top: 26px; }
.sensor-card { left: -10px; bottom: 46px; }

.metric-card {
  right: 22px;
  bottom: -14px;
  width: 220px;
  padding: 1rem 1.1rem;
}

.progress {
  width: 100%;
  height: 9px;
  background: rgba(20,33,43,.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: .8rem;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: inherit;
}

.label {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-header p {
  max-width: 58ch;
  color: var(--muted);
}

.story-grid { align-items: stretch; }

.story-photo {
  min-height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(15,23,32,.92), rgba(21,34,49,.82)),
    radial-gradient(circle at 20% 20%, rgba(89,183,255,.18), transparent 32%);
  box-shadow: var(--shadow);
}

.story-photo::before {
  content: "1989 → vandaag";
  position: absolute;
  left: 28px;
  top: 28px;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  font-weight: 800;
}

.story-photo::after {
  content: "Het Huis van de Toekomst was de vonk. Dit blog is de praktische vertaling daarvan.";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
}

.featured-list { display: grid; gap: 1rem; }

.featured-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.timeline { display: grid; gap: 1rem; }

.timeline-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.newsletter {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(15,23,32,.98), rgba(21,34,49,.94));
  color: #fff;
}

.newsletter p { color: rgba(255,255,255,.76); }

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .7rem;
}

.newsletter-form input,
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(217,227,224,.95);
  padding: .95rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,.98);
}

.breadcrumbs {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  color: var(--muted);
  margin-bottom: .9rem;
  flex-wrap: wrap;
}

.page-hero {
  padding: 74px 0 42px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
}

.page-hero .panel,
.article-hero .panel {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,249,.98));
}

.meta-list {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.meta-pill {
  padding: .45rem .72rem;
  border-radius: 999px;
  background: rgba(20,33,43,.06);
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
}

.article-hero {
  padding: 68px 0 32px;
  background:
    radial-gradient(circle at top left, rgba(26,160,109,.12), transparent 26%),
    radial-gradient(circle at top right, rgba(89,183,255,.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.56), rgba(255,255,255,0));
}

.project-hero-media {
  margin-top: 1.25rem;
}

.project-hero-media .panel {
  padding: 1.1rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-hero-media figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
}

.project-hero-media figcaption {
  margin-top: 0.75rem;
  line-height: 1.5;
}

.project-hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.article-layout { align-items: start; }

.article-body {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  min-width: 0;
}

.article-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 2rem;
}

.article-body h3 { margin-top: 1.4rem; }

.article-body .lead {
  font-size: 1.12rem;
  color: var(--muted);
}

.article-body .note,
.article-body .warning {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  margin: 1.2rem 0;
  font-size: .98rem;
}

.article-body .note {
  background: rgba(89,183,255,.1);
  border: 1px solid rgba(89,183,255,.2);
}

.article-body .warning {
  background: rgba(184,92,0,.08);
  border: 1px solid rgba(184,92,0,.2);
  color: #6b3904;
}

.article-body pre {
  background: #0f1720;
  color: #eff7ff;
  padding: 1rem;
  border-radius: 18px;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.5;
  border: 1px solid rgba(255,255,255,.06);
  max-width: 100%;
}

/* Minimal editorial affiliate weergave */
.affiliate-auto-block {
  margin: 1.15rem 0 1.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(217,227,224,.95);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: none;
}

.affiliate-auto-block h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.affiliate-auto-block > p {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.affiliate-auto-block .affiliate-disclaimer,
.affiliate-auto-block .affiliate-note,
.affiliate-auto-block .affiliate-block-note {
  margin: 0.55rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
}

.affiliate-product-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(217,227,224,.85);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.affiliate-auto-block > div:first-of-type .affiliate-product-card,
.affiliate-product-card:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

.affiliate-product-image,
.affiliate-product-media,
.affiliate-product-gallery {
  min-width: 0;
}

.affiliate-product-image img,
.affiliate-product-media img,
.affiliate-product-gallery img {
  width: 100%;
  max-width: 68px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: #fff;
  border: 1px solid rgba(217,227,224,.9);
  padding: 0.2rem;
  box-shadow: none;
}

.affiliate-product-content {
  min-width: 0;
}

.affiliate-product-title {
  margin: 0 0 0.12rem;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 800;
}

.affiliate-product-title a {
  color: var(--text);
}

.affiliate-product-title a:hover {
  color: var(--primary-dark);
}

.affiliate-product-description {
  margin: 0 0 0.42rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.affiliate-product-description p {
  margin: 0;
}

.affiliate-shop-links,
.affiliate-product-links,
.affiliate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  align-items: center;
}

.affiliate-shop-link,
.affiliate-product-link,
.affiliate-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(217,227,224,.95);
  background: transparent;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
  white-space: nowrap;
  box-shadow: none;
}

.affiliate-shop-link:hover,
.affiliate-product-link:hover,
.affiliate-links a:hover {
  border-color: rgba(26,160,109,.45);
  color: var(--primary-dark);
  background: rgba(26,160,109,.04);
  transform: none;
}

.affiliate-shop-badge,
.affiliate-badge,
.affiliate-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.14rem 0.32rem;
  border-radius: 999px;
  background: rgba(20,33,43,.05);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.affiliate-product-meta,
.affiliate-product-note,
.affiliate-note {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.affiliate-product-card .glide,
.affiliate-product-card .swiper,
.affiliate-product-card .carousel,
.affiliate-product-card .slider,
.affiliate-product-card .affiliate-gallery,
.affiliate-product-card .affiliate-image-slider {
  max-width: 68px;
}

.affiliate-product-card .glide__slides,
.affiliate-product-card .swiper-wrapper,
.affiliate-product-card .carousel-track {
  margin: 0;
  padding: 0;
}

.affiliate-product-card .glide__bullets,
.affiliate-product-card .swiper-pagination,
.affiliate-product-card .carousel-dots,
.affiliate-product-card .affiliate-dots {
  margin-top: 0.2rem;
  display: flex;
  justify-content: center;
  gap: 0.18rem;
}

.affiliate-product-card .glide__bullet,
.affiliate-product-card .swiper-pagination-bullet,
.affiliate-product-card .carousel-dot,
.affiliate-product-card .affiliate-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(20,33,43,.22);
  opacity: 1;
}

.affiliate-product-card .swiper-pagination-bullet-active,
.affiliate-product-card .glide__bullet--active,
.affiliate-product-card .carousel-dot.active,
.affiliate-product-card .affiliate-dot.active {
  background: var(--primary);
}

.affiliate-product-card .glide__arrows,
.affiliate-product-card .swiper-button-prev,
.affiliate-product-card .swiper-button-next,
.affiliate-product-card .carousel-arrow,
.affiliate-product-card .affiliate-arrow {
  display: none !important;
}
.toc,
.sidebar-card {
  position: sticky;
  top: 108px;
}

.toc h3,
.sidebar-card h3 {
  margin-bottom: .7rem;
}

.toc a {
  display: block;
  padding: .45rem 0;
  color: var(--muted);
  font-weight: 700;
}

.toc a:hover { color: var(--primary-dark); }

.side-stack { display: grid; gap: 1rem; }

.review-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.review-card .score {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: .3rem;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #0f1720, #162534);
  color: #fff;
}

.cta-banner p { color: rgba(255,255,255,.76); }

.site-footer {
  background: linear-gradient(135deg, #0f1720, #152231);
  color: rgba(255,255,255,.78);
  padding: 34px 0 20px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.25fr .8fr .8fr .8fr;
  align-items: start;
}

.footer-logo {
  width: min(330px, 100%);
  margin-bottom: .9rem;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: .75rem;
}

.footer-links { display: grid; gap: .5rem; }

.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: .92rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .story-grid,
  .two-col,
  .article-layout,
  .project-content-layout,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .review-grid,
  .footer-grid,
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    background: linear-gradient(180deg, #11202d 0%, #162534 22%, #f4f7f6 22%, #f4f7f6 100%);
  }

  .hero-visual { min-height: 500px; }

  .toc,
  .sidebar-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .review-grid,
  .hero-stats,
  .newsletter-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .section-soft {
    padding: 64px 0;
  }

  .section-tight { padding: 44px 0; }

  .navbar { min-height: 78px; }

  .logo-header { max-height: 54px; }

  .nav-toggle { display: inline-block; }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .55rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #152231;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: .75rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a { color: rgba(255,255,255,.86); }

  .showcase-card {
    position: relative;
    min-height: 440px;
  }

  .floating-card,
  .metric-card {
    position: static;
    max-width: none;
    margin-top: 1rem;
    width: 100%;
  }

  .featured-item { grid-template-columns: auto 1fr; }

  .featured-item .small-tag {
    grid-column: 2;
    justify-self: start;
  }

  .cta-banner,
  .section-header {
    flex-direction: column;
    align-items: start;
  }

  .article-body { padding: 1.35rem; }

  .affiliate-auto-block {
    padding: 0.9rem 0.9rem 0.8rem;
  }

   .affiliate-auto-block {
    padding: 0.85rem 0.9rem;
  }

  .affiliate-product-card {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .affiliate-product-image img,
  .affiliate-product-media img,
  .affiliate-product-gallery img,
  .affiliate-product-card .glide,
  .affiliate-product-card .swiper,
  .affiliate-product-card .carousel,
  .affiliate-product-card .slider,
  .affiliate-product-card .affiliate-gallery,
  .affiliate-product-card .affiliate-image-slider {
    max-width: 60px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .hero {
    padding: 58px 0 42px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .mock-home {
    min-height: 320px;
  }

  .story-photo {
    min-height: 280px;
  }

  .story-photo::before {
    left: 18px;
    top: 18px;
    font-size: .82rem;
  }

  .story-photo::after {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .article-body {
    padding: 1.1rem;
    border-radius: 20px;
  }

  .card,
  .panel,
  .article-card,
  .metric-card,
  .newsletter,
  .cta-banner,
  .toc,
  .sidebar-card {
    padding: 1rem;
  }

  .nav-links {
    left: .625rem;
    right: .625rem;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
  }

    .affiliate-product-card {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .affiliate-product-image img,
  .affiliate-product-media img,
  .affiliate-product-gallery img {
    max-width: 64px;
  }

  .affiliate-product-image,
  .affiliate-product-media,
  .affiliate-product-gallery {
    justify-self: start;
  }

  .affiliate-shop-links,
  .affiliate-product-links,
  .affiliate-links {
    gap: 0.35rem;
  }

  .affiliate-shop-link,
  .affiliate-product-link,
  .affiliate-links a {
    font-size: 0.74rem;
    padding: 0.32rem 0.54rem;
  }
}

.profile-panel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.profile-panel .profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.review-card-image-link {
  display: block;
}

.review-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.review-card-body {
  padding: 1rem 1rem 1.1rem;
}

.review-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .8rem;
}

.review-card-title {
  margin-top: 0;
  margin-bottom: .55rem;
}

.review-card-title a {
  text-decoration: none;
  color: inherit;
}

.review-card-title a:hover {
  text-decoration: underline;
}

.review-card-text {
  margin-bottom: 1rem;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
}

.review-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(26, 160, 109, 0.12);
  color: var(--primary-dark);
}

.review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1rem 0 1.4rem;
}

.review-filter-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: .6rem .95rem;
  cursor: pointer;
  font: inherit;
  transition: .2s ease;
}

.review-filter-chip:hover,
.review-filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.section-heading {
  margin-bottom: 1rem;
}

@media (max-width: 980px) {
  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-card-image {
    height: 200px;
  }
}

/* 🔥 zichtbaarheid zoekbalk 404 pagina*/
.error-search input {
  width: min(100%, 520px);
  padding: 1.1rem 1.2rem;
  border-radius: 18px;

  /* 🔥 zichtbaarheid */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);

  color: var(--text);
  font-size: 1rem;

  /* subtiele diepte */
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);

  transition: all .2s ease;
}
/* 🔥Einde zichtbaarheid zoekbalk 404 pagina*/