/*
Theme Name: Kynex GmbH
Theme URI: https://kynex.gmbh
Author: Kynex GmbH
Author URI: https://kynex.gmbh
Description: Eigen thema voor kynex.gmbh — volledig beheerbaar via de WordPress Customizer (logo, hero, secties, team, footer, menu's). Geen page builder nodig.
Version: 1.0.17
Requires at least: 5.9
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: kynex
*/

/* ── Root variables ──────────────────────────────────────────────────────── */
:root {
  --kx-bg: #ffffff;
  --kx-text: #6f6f6f;
  --kx-heading: #232323;
  --kx-accent: #ff214f;
  --kx-dark: #1a1a1a;
  --kx-dark-2: #232323;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--kx-text);
  background: var(--kx-bg);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--kx-heading);
  line-height: 1.3;
  margin: 0 0 15px;
}

a { color: var(--kx-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

.kx-btn {
  display: inline-block;
  background: var(--kx-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 3px;
  transition: background .25s ease, transform .25s ease;
}
.kx-btn:hover { background: #d8103a; color: #fff; transform: translateY(-2px); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.kx-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent);
}
.kx-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.kx-logo-img { max-height: 46px; width: auto; }
.kx-logo-text { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: #fff; }

.kx-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.kx-hamburger span { width: 24px; height: 2px; background: #fff; display: block; }

.kx-nav { display: flex; align-items: center; }

.kx-header-social { display: flex; align-items: center; gap: 14px; margin-left: 30px; }
.kx-header-social a {
  color: #fff;
  font-size: 13px;
  opacity: .85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kx-header-social a:hover { opacity: 1; color: var(--kx-accent); }
.kx-menu { list-style: none; display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; }
.kx-menu > li { position: relative; }
.kx-menu > li > a {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.kx-menu > li > a:hover { color: var(--kx-accent); }

.kx-login-item { position: relative; }
.kx-login-dropdown {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 160px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  border-radius: 3px;
  padding: 8px 0;
  margin-top: 10px;
  z-index: 10;
}
.kx-login-item:hover .kx-login-dropdown,
.kx-login-item.kx-login-open .kx-login-dropdown { display: block; }
.kx-login-dropdown a {
  display: block;
  padding: 8px 18px;
  color: var(--kx-heading) !important;
  font-size: 13px !important;
  text-transform: none !important;
  font-weight: 500 !important;
}
.kx-login-dropdown a:hover { background: #f5f5f5; color: var(--kx-accent) !important; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.kx-hero {
  position: relative;
  min-height: 100vh; /* volledige viewporthoogte, zoals op de live site */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.kx-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.kx-hero-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .5;
  z-index: 2;
}
.kx-hero-content { position: relative; z-index: 3; text-align: center; color: #fff; padding: 0 20px; }
.kx-hero-kicker { font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; opacity: .9; }
.kx-hero-title { font-size: clamp(34px, 6vw, 64px); font-weight: 600; color: #fff; margin: 0; }

/* ── Split: Verwaltung und Aquisitionsholding ───────────────────────────── */
.kx-split {
  position: relative;
  background-color: var(--kx-dark-2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* achtergrond blijft staan (parallax) terwijl de pagina scrollt */
  overflow: hidden;
}
.kx-split-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, .7);
  z-index: 1;
}
.kx-split-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.kx-split-image { position: relative; z-index: 2; min-height: 420px; padding: 14px 0; box-sizing: border-box; background-size: cover; background-position: center; overflow: hidden; }
.kx-split-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kx-split-text { padding: 90px 60px; color: #d0d0d0; }
.kx-split-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--kx-accent);
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
}
.kx-split-text h2 { color: #fff; font-size: 28px; }
.kx-split-text p { color: #b8b8b8; }
.kx-split-list { list-style: none; margin: 25px 0; padding: 0; }
.kx-split-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: #d0d0d0;
  font-size: 15px;
}
.kx-split-list li:first-child { border-top: 1px solid rgba(255,255,255,.15); }
.kx-split-list li i { color: var(--kx-accent); margin-right: 10px; }

/* ── Team: wir sind die Kynex GmbH ─────────────────────────────────────── */
.kx-team { padding: 100px 0; text-align: center; }
.kx-team-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.kx-team-intro { max-width: 700px; margin: 0 auto 40px; }
.kx-team-kicker { display: block; color: var(--kx-text); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.kx-team-intro h2 { font-size: 30px; font-weight: 700; margin-bottom: 18px; }
.kx-team-intro h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: var(--kx-accent);
  margin: 18px auto 0;
}

.kx-team-slider { position: relative; max-width: 720px; margin: 0 auto; }
.kx-team-track { position: relative; }
.kx-team-slide { display: none; text-align: center; }
.kx-team-slide.is-active { display: block; }

.kx-team-quote-box {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 20px;
  margin-bottom: 30px;
}
.kx-team-quote-box p { margin: 0; font-size: 15px; font-weight: 400; color: var(--kx-text); line-height: 1.7; }
.kx-team-quote-box a { color: var(--kx-accent); text-decoration: underline; }

.kx-team-profile { text-align: center; }
.kx-team-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.kx-team-profile h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.kx-team-role { color: var(--kx-text); font-size: 12px; margin: 0; display: block; }

.kx-team-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 22px;
  color: var(--kx-text);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}
.kx-team-arrow:hover { color: var(--kx-accent); }
.kx-team-arrow-prev { left: -10px; }
.kx-team-arrow-next { right: -10px; }

.kx-team-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.kx-team-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: #d8d8d8;
  cursor: pointer;
  padding: 0;
}
.kx-team-dot.is-active { background: var(--kx-accent); }

/* ── Generic pages (Impressum e.d., later fase) ─────────────────────────── */
.kx-generic-content { padding: 160px 0 100px; }
.kx-generic-inner { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.kx-footer { background: var(--kx-dark); color: #a8a8a8; }
.kx-footer a { color: #a8a8a8; }
.kx-footer a:hover { color: var(--kx-accent); }

.kx-footer-top { border-bottom: 1px solid rgba(255,255,255,.1); padding: 30px 0; }
.kx-footer-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.kx-footer-top-left, .kx-footer-top-right { flex: 1 1 220px; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.kx-footer-top-right { text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.kx-footer-top-center { flex: 0 0 auto; }
.kx-footer-top-center img { max-height: 34px; width: auto; }

.kx-social { display: flex; flex-wrap: wrap; gap: 10px; }
.kx-social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  font-size: 13px;
}
.kx-social a:hover { background: var(--kx-accent); border-color: var(--kx-accent); color: #fff; }

.kx-footer-main { padding: 60px 0; }
.kx-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.kx-footer-col h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 20px; }
.kx-footer-col p { margin: 0 0 18px; font-size: 14px; }
.kx-footer-col p strong { display: block; color: #fff; font-size: 13px; margin-bottom: 4px; }
.kx-footer-menu { list-style: none; margin: 0; padding: 0; }
.kx-footer-menu li { margin-bottom: 12px; }
.kx-footer-menu a { font-size: 14px; }

.kx-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 13px; }
.kx-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Back to top ─────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--kx-accent);
  color: #fff;
  border: none;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.back-to-top.kx-visible { display: flex; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .kx-split-inner { grid-template-columns: 1fr; }
  .kx-split-image { min-height: 280px; }
  .kx-split { background-attachment: scroll; }
  .kx-split-text { padding: 50px 30px; }
  .kx-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .kx-team-grid { grid-template-columns: 1fr; gap: 40px; }
  .kx-footer-top-inner { justify-content: center; text-align: center; }
  .kx-footer-top-left, .kx-footer-top-right { text-align: center; justify-content: center; }

  .kx-menu { display: none; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--kx-dark); padding: 10px 20px; }
  .kx-nav-open .kx-menu,
  #kx-primary-nav.kx-nav-open .kx-menu { display: flex; }
  .kx-menu > li { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .kx-login-dropdown { position: static; box-shadow: none; background: transparent; margin-top: 4px; padding-left: 10px; display: none; }
  .kx-login-item.kx-login-open .kx-login-dropdown { display: block; }
  .kx-login-dropdown a { color: #ccc !important; }
  .kx-hamburger { display: flex; }
  .kx-header-social { display: none; }
}

@media (max-width: 640px) {
  .kx-footer-grid { grid-template-columns: 1fr; }
  .kx-split-text { padding: 40px 22px; }
  .kx-team-photo { width: 130px; height: 130px; }
}

/* ── Generieke pagina's (Impressum, Datenschutzerklärung, Cookie Policy, Kontakt) ─── */
.kx-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;
}

.kx-generic-content h1, .kx-generic-content h2, .kx-generic-content h3,
.kx-generic-content h4, .kx-generic-content h5, .kx-generic-content h6 {
  font-family: var(--font-heading);
  color: var(--kx-heading);
}
.kx-generic-content p { color: var(--kx-text); line-height: 1.8; margin-bottom: 16px; }
.kx-generic-content a { color: var(--kx-accent); }
.kx-generic-content ul, .kx-generic-content ol { color: var(--kx-text); line-height: 1.8; padding-left: 22px; margin-bottom: 16px; }
.kx-generic-content strong { color: var(--kx-heading); }

/* Eigen contactformulier (geen plugin) — ondergrond-stijl invoervelden op donkere sectie */
.kx-contact-form .kx-form-row { display: block; margin-bottom: 18px; }
.kx-contact-form input.kx-input,
.kx-contact-form textarea.kx-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 4px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s;
}
.kx-contact-form input.kx-input::placeholder,
.kx-contact-form textarea.kx-input::placeholder { color: rgba(255,255,255,.6); }
.kx-contact-form input.kx-input:focus,
.kx-contact-form textarea.kx-input:focus { border-bottom-color: var(--kx-accent); }
.kx-contact-form textarea.kx-input { border: 1px solid rgba(255,255,255,.35); border-radius: 4px; padding: 10px 12px; resize: vertical; }
.kx-contact-form textarea.kx-input:focus { border-color: var(--kx-accent); border-bottom: 1px solid var(--kx-accent); }
.kx-honeypot-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.kx-captcha-row { display: flex; align-items: center; gap: 12px; }
.kx-captcha-img { border-radius: 4px; border: 1px solid rgba(255,255,255,.2); flex-shrink: 0; }
.kx-captcha-row .kx-input { flex: 1; }
.kx-contact-form .kx-submit {
  display: inline-block;
  background: var(--kx-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 13px 32px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity .2s;
}
.kx-contact-form .kx-submit:hover { opacity: .9; }
.kx-form-notice { border-radius: 4px; margin-bottom: 20px; padding: 14px 18px; font-size: 14px; }
.kx-form-notice.kx-success { background: rgba(46,204,113,.12); border: 1px solid #2ecc71; color: #2ecc71; }
.kx-form-notice.kx-error { background: rgba(255,128,128,.12); border: 1px solid #ff8080; color: #ff8080; }

/* ── Sub-pagina's: kleine pagina-hero (titelbalk) ──────────────────────────── */
.kx-page-hero {
  background: var(--kx-dark);
  padding: 160px 0 50px;
  text-align: center;
}
.kx-page-hero h1 { color: #fff; font-size: 34px; margin: 0; }
.kx-page-hero .kx-page-kicker { display: block; color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }

/* ── Legal content (Impressum / Datenschutzerklärung / Cookie Policy) ─────── */
.kx-legal-content { max-width: 780px; margin: 0 auto; padding: 60px 20px 100px; }
.kx-legal-content h2 { font-size: 22px; margin: 40px 0 14px; }
.kx-legal-content h2:first-child { margin-top: 0; }
.kx-legal-content h3 { font-size: 17px; margin: 26px 0 10px; }
.kx-legal-content p { color: var(--kx-text); line-height: 1.8; margin-bottom: 14px; }
.kx-legal-content a { color: var(--kx-accent); }
.kx-legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.kx-legal-content th, .kx-legal-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.kx-legal-content th { color: var(--kx-heading); font-family: var(--font-heading); font-size: 13px; text-transform: uppercase; }
.kx-legal-content td { color: var(--kx-text); }

/* ── Kontakt-pagina ─────────────────────────────────────────────────────────── */
.kx-contact-intro { padding: 60px 0 20px; }
.kx-contact-intro-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }
.kx-contact-kicker { display: block; color: var(--kx-text); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; margin-bottom: 30px; }
.kx-contact-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1000px; margin: 0 auto; }
.kx-contact-box-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--kx-accent); color: #fff; font-size: 16px; margin-bottom: 16px; }
.kx-contact-box h3 { font-size: 13px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px; }
.kx-contact-box p { color: var(--kx-text); line-height: 1.7; margin-bottom: 10px; }
.kx-contact-box a.kx-box-link { color: var(--kx-accent); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

.kx-contact-split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 70px; min-height: 520px; }
.kx-contact-split-image { position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 40px; }
.kx-contact-split-card { background: #fff; border-radius: 6px; padding: 30px 34px; box-shadow: 0 10px 40px rgba(0,0,0,.15); max-width: 380px; }
.kx-contact-split-card h2 { font-size: 22px; margin-bottom: 8px; }
.kx-contact-split-card h4 { font-size: 14px; color: var(--kx-text); font-weight: 600; margin-bottom: 10px; }
.kx-contact-split-card p { color: var(--kx-text); font-size: 14px; line-height: 1.6; margin: 0; }
.kx-contact-split-form { background: var(--kx-dark-2); padding: 70px 60px; }
.kx-contact-split-form p.kx-form-intro { color: rgba(255,255,255,.6); font-size: 14px; margin-bottom: 4px; }
.kx-contact-split-form h3 { color: #fff; font-size: 20px; margin-bottom: 30px; }

.kx-contact-map { line-height: 0; }
.kx-contact-map iframe { width: 100%; height: 450px; border: 0; display: block; }

@media (max-width: 900px) {
  .kx-contact-boxes { grid-template-columns: 1fr; gap: 40px; }
  .kx-contact-split { grid-template-columns: 1fr; }
  .kx-contact-split-image { min-height: 320px; }
  .kx-contact-split-form { padding: 50px 30px; }
}
