/*
Theme Name: Top Kertész
Theme URI: https://topkertesz.hu/
Author: MS-HOME Kft.
Description: Saját, könnyű block téma a Top Kertész (MS-HOME Kft.) részére. Beépített helyi SEO, schema.org, llms.txt és ajánlatkérő űrlap, oldalépítő plugin nélkül.
Version: 1.7.6
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
Text Domain: topkertesz
*/

/* ---------- Alapok ---------- */
h1, h2, .wp-block-post-title { font-stretch: 88%; }
.tk-szeles { font-stretch: 112%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p, li { max-width: 68ch; }
.has-text-align-center p, p.has-text-align-center { margin-inline: auto; }
img { height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--wp--preset--color--zold); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.tk-halk { color: var(--wp--preset--color--szurke); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
html { scroll-behavior: smooth; }

/* ---------- Fejléc ---------- */
.tk-fejlec { border-bottom: 1px solid var(--wp--preset--color--vonal); background: var(--wp--preset--color--alap); position: relative; z-index: 20; }
.tk-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wp--preset--color--tinta); }
.tk-logo svg { flex: none; }
.tk-logo span { font-size: 22px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; line-height: 1; }
.tk-fejlec .wp-block-navigation a { text-decoration: none; }
.tk-fejlec .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tk-fejlec .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--vonal) !important; padding: 8px 0; min-width: 260px !important; }
.tk-fejlec .wp-block-navigation__submenu-container a { padding: 8px 18px !important; }
.tk-fejlec .wp-block-button__link { padding: 10px 18px; font-size: 16px; }
@media (max-width: 781px) { .tk-fejlec .tk-fejlec-gombok { display: none !important; } }
.tk-logo span { white-space: nowrap; }

/* ---------- Szekciók ---------- */
.tk-szekcio { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--70); }
.tk-szekcio--feher { background: var(--wp--preset--color--feher); border-top: 1px solid var(--wp--preset--color--vonal); border-bottom: 1px solid var(--wp--preset--color--vonal); }
.tk-szekcio--sotet { background: var(--wp--preset--color--tinta); color: var(--wp--preset--color--alap); }
.tk-szekcio--sotet :where(h1,h2,h3,h4,a,p,li,strong) { color: var(--wp--preset--color--alap); }
.tk-szekcio--sotet .tk-halk { color: #C3CFC6; }
.tk-szekcio--sotet .wp-block-button__link { background: var(--wp--preset--color--alap); color: var(--wp--preset--color--tinta); border-color: var(--wp--preset--color--alap); }
.tk-szekcio--sotet .is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--alap); }
.tk-szekcio > .wp-block-heading:first-child, .tk-szekcio > *:first-child { margin-top: 0; }
.tk-szekcio-cim { margin-bottom: 8px !important; }
.tk-szekcio-bevezeto { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--szurke); margin-top: 0; margin-bottom: 40px; }
.tk-szekcio--sotet .tk-szekcio-bevezeto { color: #C3CFC6; }

/* ---------- Hero ---------- */
.tk-hero { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.tk-hero h1 { margin-top: 0; }
.tk-felcim { font-size: 16px; color: var(--wp--preset--color--szurke); margin: 0 0 18px; }
.tk-hero-bevezeto { font-size: var(--wp--preset--font-size--large); color: #33433F; line-height: 1.55; }
.tk-bizalom { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; font-weight: 600; }
.tk-bizalom li { display: flex; align-items: center; gap: 8px; }
.tk-bizalom li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--zold); box-shadow: 0 0 0 3px var(--wp--preset--color--halvanyzold); }
.tk-alaprajz { margin: 0; }
.tk-alaprajz svg { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--wp--preset--color--vonal); }
.tk-alaprajz figcaption { margin-top: 10px; font-size: 14px; color: var(--wp--preset--color--szurke); }

/* ---------- Oldalfej (aloldalak) ---------- */
.tk-oldalfej { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); border-bottom: 1px solid var(--wp--preset--color--vonal); }
.tk-oldalfej .wp-block-post-title { margin: 12px 0 0; }
.tk-oldalfej .wp-block-post-excerpt { margin-top: 20px; }
.tk-oldalfej .wp-block-post-excerpt__excerpt { max-width: 46em; }
.tk-morzsa ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; color: var(--wp--preset--color--szurke); }
.tk-morzsa li { display: flex; gap: 10px; align-items: center; }
.tk-morzsa li + li::before { content: "/"; color: var(--wp--preset--color--vonal); }
.tk-morzsa a { color: var(--wp--preset--color--szurke); }

/* ---------- Oldaltartalom ---------- */
.tk-tartalom { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--70); }
.tk-tartalom > h2 { margin-top: var(--wp--preset--spacing--60); }
.tk-tartalom > h3 { margin-top: var(--wp--preset--spacing--40); }

/* Röviden doboz (válasz elöl) */
.tk-roviden { background: var(--wp--preset--color--feher); border: 1px solid var(--wp--preset--color--vonal); border-radius: 6px; padding: 24px 28px; }
.tk-roviden > :first-child { margin-top: 0; }
.tk-roviden > :last-child { margin-bottom: 0; }
.tk-roviden h2 { font-size: 20px; font-stretch: 100%; letter-spacing: 0; margin-bottom: 8px; }

/* Tény/árkártyák */
.tk-tenyek { border-top: 1px solid var(--wp--preset--color--vonal); }
.tk-tenyek > .wp-block-group { padding: 20px 0; border-bottom: 1px solid var(--wp--preset--color--vonal); }
.tk-tenyek p { margin: 0; }
.tk-teny-szam { font-size: 28px; font-weight: 800; font-stretch: 88%; line-height: 1.1; }
.tk-teny-cimke { font-size: 15px; color: var(--wp--preset--color--szurke); }

/* ---------- Jelmagyarázat (szolgáltatásrács) ---------- */
.tk-jelek { border-top: 1px solid var(--wp--preset--color--vonal); gap: 0 32px !important; }
.tk-jel { position: relative; padding: 28px 0 28px 62px; border-bottom: 1px solid var(--wp--preset--color--vonal); }
.tk-jel::before { content: ""; position: absolute; left: 0; top: 30px; width: 42px; height: 42px; background-repeat: no-repeat; background-size: contain; }
.tk-jel h3 { margin: 0; font-size: 20px; }
.tk-jel h3 a { text-decoration: none; }
.tk-jel h3 a::after { content: ""; position: absolute; inset: 0; }
.tk-jel:hover h3 a { text-decoration: underline; text-underline-offset: 4px; }
.tk-jel p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: var(--wp--preset--color--szurke); }
.tk-jel--kertterv::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='2' y='2' width='36' height='36' fill='%23fff' stroke='%2315302C' stroke-width='2'/%3E%3Cpath d='M2 14h36M14 2v36' stroke='%23C9D3CC' stroke-width='1.5'/%3E%3Cpath d='M8 32 32 8' stroke='%232E6B3A' stroke-width='2.5'/%3E%3Ccircle cx='26' cy='28' r='5' fill='%236FA83A'/%3E%3C/svg%3E"); }
.tk-jel--kertepites::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='2' y='2' width='36' height='36' fill='%23DCEBC9' stroke='%2315302C' stroke-width='2'/%3E%3Ccircle cx='20' cy='20' r='8' fill='%236FA83A' stroke='%232E6B3A' stroke-width='2'/%3E%3C/svg%3E"); }
.tk-jel--ontozes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='17' fill='none' stroke='%232E6B3A' stroke-width='2' stroke-dasharray='4 4'/%3E%3Ccircle cx='20' cy='20' r='3' fill='%2315302C'/%3E%3C/svg%3E"); }
.tk-jel--to::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='20' rx='17' ry='12' fill='%23B9DAE8' stroke='%233E7E99' stroke-width='2'/%3E%3Cpath d='M12 20c3-3 5 3 8 0s5 3 8 0' fill='none' stroke='%233E7E99' stroke-width='1.5'/%3E%3C/svg%3E"); }
.tk-jel--burkolat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='2' y='2' width='36' height='36' fill='%23DCD8CF' stroke='%2315302C' stroke-width='2'/%3E%3Cpath d='M2 20h36M20 2v18M11 20v18M29 20v18' stroke='%238C8577' stroke-width='2'/%3E%3C/svg%3E"); }
.tk-jel--gyep::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='2' y='2' width='36' height='36' fill='%23DCEBC9' stroke='%2315302C' stroke-width='2'/%3E%3Cpath d='M8 30l4-10M16 30l2-12M24 30l-1-11M32 30l-4-10' stroke='%232E6B3A' stroke-width='2'/%3E%3C/svg%3E"); }
.tk-jel--fenntartas::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='17' fill='%23fff' stroke='%2315302C' stroke-width='2'/%3E%3Cpath d='M20 9v11l7 5' stroke='%2315302C' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.tk-jel--foldmunka::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M2 26 14 18l10 6 14-10v24H2z' fill='%23C9B79C' stroke='%2315302C' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M2 26 14 18l10 6 14-10' fill='none' stroke='%232E6B3A' stroke-width='2' stroke-dasharray='3 3' transform='translate(0 -6)'/%3E%3C/svg%3E"); }
.tk-jel--parkositas::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='2' y='2' width='36' height='36' fill='%23DCEBC9' stroke='%2315302C' stroke-width='2'/%3E%3Cpath d='M2 26c12-4 24 4 36 0' stroke='%23DCD8CF' stroke-width='5' fill='none'/%3E%3Ccircle cx='11' cy='13' r='5' fill='%236FA83A' stroke='%232E6B3A' stroke-width='1.5'/%3E%3Ccircle cx='28' cy='12' r='4' fill='%236FA83A' stroke='%232E6B3A' stroke-width='1.5'/%3E%3C/svg%3E"); }
.tk-jel--epitmeny::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M6 14h28M6 20h28' stroke='%2315302C' stroke-width='2.5'/%3E%3Cpath d='M9 14v24M31 14v24' stroke='%2315302C' stroke-width='3'/%3E%3Cpath d='M4 8h32' stroke='%232E6B3A' stroke-width='3'/%3E%3C/svg%3E"); }
.tk-jel--gep::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='4' y='16' width='22' height='12' rx='2' fill='%236FA83A' stroke='%2315302C' stroke-width='2'/%3E%3Cpath d='M26 22h6l4 6' fill='none' stroke='%2315302C' stroke-width='2'/%3E%3Ccircle cx='10' cy='31' r='4' fill='%23fff' stroke='%2315302C' stroke-width='2'/%3E%3Ccircle cx='22' cy='31' r='4' fill='%23fff' stroke='%2315302C' stroke-width='2'/%3E%3Cpath d='M10 16V9h10l3 7' fill='none' stroke='%2315302C' stroke-width='2'/%3E%3C/svg%3E"); }

/* ---------- Folyamat (valódi sorrend) ---------- */
.tk-lepesek { list-style: none; padding: 0; margin: 0; counter-reset: lepes; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; border-top: 1px solid var(--wp--preset--color--vonal); }
.tk-lepesek > li { counter-increment: lepes; padding: 24px 0; border-bottom: 1px solid var(--wp--preset--color--vonal); max-width: none; }
.tk-lepesek > li::before { content: counter(lepes); display: block; font-size: 44px; font-weight: 800; font-stretch: 88%; line-height: 1; color: var(--wp--preset--color--sotetzold); margin-bottom: 12px; }
.tk-szekcio--sotet .tk-lepesek > li::before { color: var(--wp--preset--color--zold); }
.tk-lepesek strong { display: block; font-size: 20px; margin-bottom: 6px; }

/* ---------- Géppark ---------- */
.tk-gepek { gap: 32px !important; }
.tk-gep { border-top: 2px solid currentColor; padding-top: 16px; }
.tk-gep h3 { margin: 0 0 4px; font-size: 21px; }
.tk-gep .tk-gep-tipus { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--wp--preset--color--sotetzold); }
.tk-szekcio--sotet .tk-gep .tk-gep-tipus { color: var(--wp--preset--color--zold); }
.tk-gep p { margin: 0; font-size: 16px; line-height: 1.5; }
.tk-gep figure { margin: 0 0 16px; }
.tk-gep img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- Referenciák ---------- */
.tk-ref figure { margin: 0 0 14px; }
.tk-ref img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--wp--preset--color--vonal); }
.tk-ref h3 { margin: 0 0 4px; font-size: 20px; }
.tk-ref p { margin: 0; font-size: 16px; color: var(--wp--preset--color--szurke); }

/* ---------- GYIK ---------- */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--vonal); padding: 0; }
.wp-block-details:first-of-type { border-top: 1px solid var(--wp--preset--color--vonal); }
.wp-block-details summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 700; font-size: 19px; line-height: 1.35; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.wp-block-details > :not(summary) { margin-top: 0; padding-bottom: 20px; }
.tk-szekcio--sotet .wp-block-details { border-color: #3D5550; }

/* ---------- Ajánlatkérő űrlap ---------- */
.tk-urlap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tk-urlap .tk-mezo { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tk-urlap .tk-mezo--teljes { grid-column: 1 / -1; }
.tk-urlap label, .tk-urlap legend { font-size: 15px; font-weight: 600; }
.tk-urlap .tk-kotelezo { color: #9B2C1F; }
.tk-urlap input[type=text], .tk-urlap input[type=tel], .tk-urlap input[type=email], .tk-urlap input[type=number], .tk-urlap select, .tk-urlap textarea {
	font: inherit; font-size: 17px; min-height: 50px; padding: 10px 14px; border: 1px solid #8C9B96; border-radius: 4px; background: #fff; color: var(--wp--preset--color--tinta); width: 100%; box-sizing: border-box;
}
.tk-urlap textarea { min-height: 140px; resize: vertical; }
.tk-urlap input:focus, .tk-urlap select:focus, .tk-urlap textarea:focus { border-color: var(--wp--preset--color--tinta); }
.tk-urlap input[type=file] { font: inherit; font-size: 15px; padding: 12px; border: 1px dashed #8C9B96; border-radius: 4px; background: #fff; }
.tk-urlap .tk-sugo { font-size: 14px; color: var(--wp--preset--color--szurke); margin: 0; }
.tk-urlap .tk-jelolo { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.5; }
.tk-urlap .tk-jelolo input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--wp--preset--color--tinta); }
.tk-urlap .tk-csapda { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tk-urlap button { font: inherit; font-weight: 700; font-size: 17px; min-height: 54px; padding: 0 30px; background: var(--wp--preset--color--tinta); color: var(--wp--preset--color--alap); border: 0; border-radius: 4px; cursor: pointer; }
.tk-urlap button:hover { background: var(--wp--preset--color--sotetzold); }
.tk-uzenet { grid-column: 1 / -1; padding: 14px 18px; border-radius: 4px; border: 1px solid; }
.tk-uzenet--hiba { background: #FBEDEA; border-color: #C9776B; color: #6E1E14; }
.tk-szekcio--sotet .tk-urlap :where(label, legend, .tk-jelolo) { color: var(--wp--preset--color--alap); }
.tk-szekcio--sotet .tk-urlap .tk-sugo { color: #C3CFC6; }
.tk-szekcio--sotet .tk-urlap .tk-kotelezo { color: #F2B8AE; }
.tk-szekcio--sotet .tk-urlap button { background: var(--wp--preset--color--alap); color: var(--wp--preset--color--tinta); }
@media (max-width: 640px) { .tk-urlap { grid-template-columns: 1fr; } }

/* ---------- Elérhetőség ---------- */
.tk-nap { font-style: normal; line-height: 1.8; }
.tk-nap a { text-decoration: none; }
.tk-nap a:hover { text-decoration: underline; }
.tk-nap-nagy { font-size: 22px; font-weight: 700; }

/* ---------- Lábléc ---------- */
.tk-lablec { background: var(--wp--preset--color--tinta); color: var(--wp--preset--color--alap); font-size: 16px; }
.tk-lablec :where(h2,h3,p,a,li,address) { color: var(--wp--preset--color--alap); }
.tk-lablec h2 { font-size: 17px; font-stretch: 100%; letter-spacing: 0; margin: 0 0 12px; font-weight: 700; }
.tk-lablec ul { list-style: none; padding: 0; margin: 0; }
.tk-lablec li { margin: 0 0 6px; }
.tk-lablec a { text-decoration: none; }
.tk-lablec a:hover { text-decoration: underline; }
.tk-lablec .tk-halk { color: #C3CFC6; }
.tk-lablec-also { border-top: 1px solid #3D5550; font-size: 14px; }

/* ---------- Mobil hívósáv ---------- */
.tk-hivosav { display: none; }
@media (max-width: 781px) {
	.tk-hivosav { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--wp--preset--color--tinta); border-top: 1px solid #3D5550; padding: 8px; gap: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
	.tk-hivosav a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 4px; font-weight: 700; text-decoration: none; font-size: 16px; }
	.tk-hivosav a:first-child { background: var(--wp--preset--color--zold); color: var(--wp--preset--color--tinta); }
	.tk-hivosav a:last-child { border: 2px solid var(--wp--preset--color--alap); color: var(--wp--preset--color--alap); }
	body { padding-bottom: 72px; }
}

/* ---------- Blog ---------- */
.tk-cikklista .wp-block-post { border-bottom: 1px solid var(--wp--preset--color--vonal); padding: 24px 0; }
.tk-cikklista .wp-block-post-title { font-size: 26px; font-stretch: 100%; margin: 4px 0 8px; }
.tk-cikklista .wp-block-post-title a { text-decoration: none; }
.tk-cikklista .wp-block-post-date { font-size: 15px; color: var(--wp--preset--color--szurke); }

/* =====================================================================
   2. verzió – prémium, sötét fejléc + szintvonalas motívum
   ===================================================================== */
:root { --tk-ej: #0F2421; --tk-sotetvonal: #2A4641; --tk-halk-vilagos: #B9C7BF; }

/* Fejléc: sötét, minden oldalon */
.tk-fejlec { background: var(--tk-ej); border-bottom-color: var(--tk-sotetvonal); }
.tk-fejlec .tk-logo { color: var(--wp--preset--color--alap) !important; }
.tk-fejlec .tk-logo circle:first-child, .tk-fejlec .tk-logo path { stroke: var(--wp--preset--color--alap); }
.tk-fejlec .wp-block-navigation, .tk-fejlec .wp-block-navigation a, .tk-fejlec .wp-block-navigation .wp-block-navigation-submenu__toggle, .tk-fejlec .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--alap); }
.tk-fejlec .wp-block-navigation__submenu-container { background: var(--wp--preset--color--alap) !important; }
.tk-fejlec .wp-block-navigation__submenu-container a { color: var(--wp--preset--color--tinta) !important; }
.tk-fejlec .wp-block-navigation__responsive-container.is-menu-open a { color: var(--wp--preset--color--tinta); }
.tk-fejlec .wp-block-button__link { background: var(--wp--preset--color--zold); border-color: var(--wp--preset--color--zold); color: var(--tk-ej); }
.tk-fejlec .wp-block-button__link:hover { background: #8CC152; border-color: #8CC152; color: var(--tk-ej); }
.tk-fejlec .is-style-outline .wp-block-button__link { background: transparent; border-color: #4E6B65; color: var(--wp--preset--color--alap); }
.tk-fejlec .is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--alap); background: transparent; color: var(--wp--preset--color--alap); }

/* Szintvonalas háttér – csak ha nincs fotó a borítón */
.tk-kontur { position: relative; overflow: hidden; }
.tk-kontur:not(:has(.wp-block-cover__image-background, .wp-block-cover__video-background)) > .wp-block-cover__background::after {
	content: ""; position: absolute; inset: 0; background: url("assets/img/szintvonal-hero.svg") center / cover no-repeat; opacity: .22;
}
.tk-csempe.tk-kontur:not(:has(.wp-block-cover__image-background)) > .wp-block-cover__background::after { background-image: url("assets/img/szintvonal-kartya.svg"); opacity: .12; }
.tk-kontur-hatter { position: relative; isolation: isolate; }
.tk-kontur-hatter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/img/szintvonal-hero.svg") center / cover no-repeat; opacity: .12; }
.tk-szekcio--sotet { background: var(--tk-ej); }

/* Hero */
.tk-hero-borito { padding-top: var(--wp--preset--spacing--70) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.tk-hero-borito .wp-block-cover__inner-container { color: var(--wp--preset--color--alap); }
.tk-hero-borito .tk-felcim { color: var(--tk-halk-vilagos); font-size: 17px; margin-bottom: 20px; }
.tk-hero-cim { font-size: clamp(52px, 8.6vw, 136px) !important; line-height: .9 !important; font-stretch: 75% !important; letter-spacing: -0.025em !important; color: var(--wp--preset--color--alap) !important; max-width: 11ch; margin: 0 0 28px !important; }
.tk-hero-bevezeto { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: #DCE4DE; max-width: 36em; margin-bottom: 32px; }
.tk-hero-borito .wp-block-button__link { background: var(--wp--preset--color--zold); border-color: var(--wp--preset--color--zold); color: var(--tk-ej); }
.tk-hero-borito .wp-block-button__link:hover { background: #8CC152; border-color: #8CC152; }
.tk-hero-borito .is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--alap); border-color: rgba(242,244,238,.55); }
.tk-hero-borito .is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--alap); background: rgba(242,244,238,.06); }
.tk-hero-tenyek { margin-top: var(--wp--preset--spacing--60) !important; gap: 0 32px !important; border-top: 1px solid rgba(242,244,238,.22); }
.tk-hero-tenyek > .wp-block-group { padding: 18px 0 0; }
.tk-hero-tenyek .tk-teny-szam { font-size: 22px; color: var(--wp--preset--color--alap); font-stretch: 100%; }
.tk-hero-tenyek .tk-teny-cimke { color: var(--tk-halk-vilagos); }

/* Kiállás */
.tk-kiallas { font-size: clamp(26px, 2.9vw, 40px); line-height: 1.22; font-weight: 600; letter-spacing: -0.015em; max-width: 22em; margin: 0; }

/* Szekciófej: cím balra, link jobbra */
.tk-szekcio-fej { justify-content: space-between !important; align-items: baseline !important; flex-wrap: wrap; margin-bottom: 32px; }
.tk-szekcio-fej h2 { margin: 0; }
.tk-szekcio-link { margin: 0; font-weight: 600; }

/* Szolgáltatás-csempék */
.tk-csempek { gap: 16px !important; }
.tk-csempe { border-radius: 6px; padding: 28px !important; }
.tk-csempe .wp-block-cover__inner-container { color: var(--wp--preset--color--alap); }
.tk-csempe h3 { margin: 0 0 6px; font-size: 26px; font-stretch: 88%; font-weight: 800; }
.tk-csempe h3 a { color: var(--wp--preset--color--alap); text-decoration: none; }
.tk-csempe h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.tk-csempe p { margin: 0; color: #D3DDD6; font-size: 16px; }
.tk-csempe:has(.wp-block-cover__image-background) > .wp-block-cover__background { background: linear-gradient(to top, rgba(15,36,33,.88) 0%, rgba(15,36,33,.15) 60%) !important; opacity: 1 !important; }
.tk-csempe .wp-block-cover__image-background { transition: transform .5s ease; }
.tk-csempe:hover .wp-block-cover__image-background { transform: scale(1.04); }
.tk-csempe:hover h3 a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tk-csempe:hover > .wp-block-cover__background::after { opacity: .2; }

/* Gép-adatlapok */
.tk-gepek { gap: 40px 32px !important; margin-top: var(--wp--preset--spacing--50) !important; }
.tk-gep { border-top: 2px solid var(--wp--preset--color--zold); padding-top: 18px; }
.tk-gep h3 { font-size: 24px; font-stretch: 88%; font-weight: 800; margin: 0 0 2px; }
.tk-spec { margin: 14px 0 0; }
.tk-spec table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tk-spec td { border: 0; border-bottom: 1px solid var(--wp--preset--color--vonal); padding: 9px 0; vertical-align: top; }
.tk-spec td:first-child { color: var(--wp--preset--color--szurke); width: 42%; padding-right: 12px; }
.tk-spec td:last-child { font-weight: 600; }
.tk-szekcio--sotet .tk-spec td { border-bottom-color: var(--tk-sotetvonal); }
.tk-szekcio--sotet .tk-spec td:first-child { color: var(--tk-halk-vilagos); }

/* Folyamat a 2. verzióban */
.tk-lepesek { margin-top: var(--wp--preset--spacing--50) !important; }

/* Aloldalak fejléce: sötét sáv szintvonalakkal */
.tk-oldalfej { background: var(--tk-ej); color: var(--wp--preset--color--alap); border-bottom: 0; position: relative; isolation: isolate; padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.tk-oldalfej::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/img/szintvonal-hero.svg") right center / cover no-repeat; opacity: .14; }
.tk-oldalfej .wp-block-post-title, .tk-oldalfej h1 { color: var(--wp--preset--color--alap); font-size: clamp(40px, 6vw, 88px); font-stretch: 75%; line-height: .95; max-width: 16ch; }
.tk-oldalfej .wp-block-post-excerpt, .tk-oldalfej .wp-block-post-excerpt__excerpt, .tk-oldalfej p { color: #D3DDD6; }
.tk-oldalfej .tk-morzsa ol, .tk-oldalfej .tk-morzsa a { color: var(--tk-halk-vilagos); }
.tk-oldalfej .tk-morzsa li + li::before { color: #4E6B65; }
.tk-oldalfej .wp-block-post-date { color: var(--tk-halk-vilagos); }

/* Elválasztó a két egymást követő sötét blokk közt (fejléc + hero) */
.tk-fejlec + * .tk-hero-borito, main > .wp-block-post-content > .tk-hero-borito:first-child { margin-top: 0 !important; }
main > .wp-block-post-content { margin-top: 0; }

/* Javítások */
.wp-site-blocks > * + * { margin-block-start: 0; }
.tk-hero-borito .wp-block-cover__inner-container { max-width: 1240px; width: 100%; margin-inline: auto; }
.tk-hero-borito .wp-block-cover__inner-container > .alignwide { max-width: none; }
.tk-hero-cim { max-width: 15ch; }
@media (max-width: 600px) { .tk-hero-cim { font-size: 54px !important; } }
.tk-hero-borito > .wp-block-cover__inner-container { max-width: 1240px !important; margin-left: auto !important; margin-right: auto !important; }
.tk-hero-tenyek p { margin: 0 !important; }
.tk-hero-tenyek .tk-teny-cimke { margin-top: 4px !important; }
.tk-hero-tenyek { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 781px) { .tk-hero-tenyek { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0 16px !important; } .tk-hero-tenyek .tk-teny-szam { font-size: 18px; } }
.tk-hero-tenyek { max-width: none !important; width: 100%; }

/* =====================================================================
   3. verzió – finomhangolás
   ===================================================================== */
/* Ragadós, áttetsző fejléc */
header.wp-block-template-part { position: sticky; top: 0; z-index: 40; }
.admin-bar header.wp-block-template-part { top: 32px; }
.tk-fejlec { background: rgba(15, 36, 33, .92); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); }

/* Hero: mélység és egyetlen belépő mozdulat */
.tk-hero-borito > .wp-block-cover__background { background-image: radial-gradient(120% 90% at 85% 10%, rgba(111,168,58,.16) 0%, rgba(111,168,58,0) 55%), linear-gradient(180deg, rgba(15,36,33,0) 55%, rgba(15,36,33,.65) 100%); }
.tk-hero-borito.tk-kontur:not(:has(.wp-block-cover__image-background)) > .wp-block-cover__background::after { opacity: .26; animation: tk-sodrodas 90s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes tk-sodrodas { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.12) translate3d(-2%, 1.5%, 0); } }
.tk-hero-borito .wp-block-cover__inner-container > .wp-block-group > * { animation: tk-belepes .9s cubic-bezier(.2,.7,.2,1) both; }
.tk-hero-borito .wp-block-cover__inner-container > .wp-block-group > :nth-child(2) { animation-delay: .08s; }
.tk-hero-borito .wp-block-cover__inner-container > .wp-block-group > :nth-child(3) { animation-delay: .16s; }
.tk-hero-borito .wp-block-cover__inner-container > .wp-block-group > :nth-child(4) { animation-delay: .24s; }
.tk-hero-borito .wp-block-cover__inner-container > .wp-block-group > :nth-child(5) { animation-delay: .32s; }
@keyframes tk-belepes { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tk-hero-borito * , .tk-hero-borito > .wp-block-cover__background::after { animation: none !important; } }
.tk-hero-cim { max-width: 12ch !important; }
.tk-hero-tenyek { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.tk-hero-tenyek .tk-teny-szam { font-size: 20px; }
@media (max-width: 781px) { .tk-hero-tenyek { grid-template-columns: 1fr !important; } .tk-hero-tenyek > .wp-block-group { padding-top: 14px; } }

/* Kiállás finomabban */
.tk-kiallas { font-weight: 500; letter-spacing: -0.02em; }

/* Amihez értünk – négy pillér */
.tk-pillerek { gap: 40px 36px !important; margin-top: var(--wp--preset--spacing--50) !important; }
.tk-piller { border-top: 1px solid var(--tk-sotetvonal); padding-top: 22px; position: relative; }
.tk-piller::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--wp--preset--color--zold); }
.tk-piller h3 { font-size: 30px; font-stretch: 80%; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.01em; }
.tk-piller p { margin: 0; color: #CFD9D2; font-size: 16px; line-height: 1.6; }

/* Csempék: finom „Részletek” jelzés */
.tk-csempe .wp-block-cover__inner-container::after { content: "Részletek"; display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--wp--preset--color--zold); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.tk-csempe:hover .wp-block-cover__inner-container::after, .tk-csempe:focus-within .wp-block-cover__inner-container::after { opacity: 1; transform: none; }
@media (hover: none) { .tk-csempe .wp-block-cover__inner-container::after { opacity: 1; transform: none; } }

/* Lábléc: éjsötét, szintvonallal */
.tk-lablec { background: var(--tk-ej); position: relative; isolation: isolate; }
.tk-lablec::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/img/szintvonal-hero.svg") left bottom / cover no-repeat; opacity: .08; }
.tk-lablec-also { border-top-color: var(--tk-sotetvonal); }

/* Szekciócímek kicsit karakteresebben */
.tk-szekcio h2.wp-block-heading { font-stretch: 80%; letter-spacing: -0.02em; }

/* Saját logó */
.tk-logo img { display: block; height: 34px; width: auto; }
.tk-lablec .tk-logo img { height: 30px; margin-bottom: 8px; }
@media (max-width: 781px) { .tk-logo img { height: 26px; } }
.tk-fejlec .alignwide { align-items: center !important; }
.tk-fejlec .tk-logo img { height: 40px; }
@media (max-width: 781px) { .tk-fejlec .tk-logo img { height: 28px; } }
.tk-lablec-also p { margin: 0; }
.tk-lablec-also p a + a { margin-left: 22px; }
.tk-fejlec .alignwide > p, .tk-lablec .wp-block-column > p:has(.tk-logo) { margin-top: 0; margin-bottom: 0; line-height: 0; }

/* Bemutatkozó videó */
.tk-video { margin: 0; }
.tk-video video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 6px; background: var(--tk-ej); box-shadow: 0 24px 60px -30px rgba(15,36,33,.55); }
.tk-video figcaption { margin-top: 10px; }
.tk-pipalista { list-style: none; padding: 0; margin: 24px 0 0; }
.tk-pipalista li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--wp--preset--color--vonal); }
.tk-pipalista li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 14px; height: 8px; border-left: 2.5px solid var(--wp--preset--color--sotetzold); border-bottom: 2.5px solid var(--wp--preset--color--sotetzold); transform: rotate(-45deg); }
/* Videós hero: a háttérvideó fölött sötétítés + átmenet */
.tk-hero-borito .wp-block-cover__video-background { filter: saturate(.85) contrast(1.05); }
.tk-hero-borito:has(.wp-block-cover__video-background) { background: #0F2421 url("assets/img/hero-poszter.webp") center / cover no-repeat; }

/* Aloldal-fejléc fotóval */
.tk-oldalfej.tk-van-fejkep { background: linear-gradient(90deg, rgba(15,36,33,.94) 0%, rgba(15,36,33,.78) 45%, rgba(15,36,33,.35) 100%), var(--tk-fejkep) center / cover no-repeat, var(--tk-ej); min-height: min(58vh, 560px); display: flex; flex-direction: column; justify-content: flex-end; }
.tk-oldalfej.tk-van-fejkep::before { opacity: .1; }
@media (max-width: 781px) { .tk-oldalfej.tk-van-fejkep { background: linear-gradient(180deg, rgba(15,36,33,.55) 0%, rgba(15,36,33,.92) 70%), var(--tk-fejkep) center / cover no-repeat, var(--tk-ej); } }

/* Galéria */
.tk-galeria { gap: 12px !important; }
.tk-galeria .wp-block-image img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; }
.tk-galeria .wp-block-image figcaption { font-size: 14px !important; background: linear-gradient(0deg, rgba(15,36,33,.8), rgba(15,36,33,0)) !important; padding: 28px 12px 10px !important; text-align: left !important; }
.tk-gep .wp-block-image { margin: 0 0 16px; }
.tk-gep .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 4px; }
.tk-galeria .wp-block-image figcaption { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; -webkit-mask-image: none !important; mask-image: none !important; max-height: none !important; overflow: visible !important; color: #fff !important; font-weight: 600; }
.tk-galeria .wp-block-image:has(figcaption)::before { display: none !important; }

/* =====================================================================
   Mobil finomhangolás
   ===================================================================== */
@media (max-width: 781px) {
	body { font-size: 17px; }
	.tk-szekcio { padding-top: 56px; padding-bottom: 56px; }
	.tk-oldalfej.tk-van-fejkep { background: linear-gradient(180deg, rgba(15,36,33,.5) 0%, rgba(15,36,33,.93) 72%), var(--tk-fejkep-kicsi, var(--tk-fejkep)) center / cover no-repeat, var(--tk-ej); min-height: 0; padding-top: 120px; padding-bottom: 36px; }
	.tk-oldalfej .wp-block-post-title, .tk-oldalfej h1 { font-size: 44px !important; }
	.tk-oldalfej .wp-block-post-excerpt { font-size: 17px; }
	.tk-hero-borito { min-height: 88svh !important; padding-top: 96px !important; padding-bottom: 32px !important; }
	.tk-hero-cim { font-size: clamp(44px, 13vw, 60px) !important; margin-bottom: 18px !important; }
	.tk-hero-bevezeto { font-size: 17px; margin-bottom: 24px; }
	.tk-hero-borito .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
	.tk-hero-borito .wp-block-button, .tk-hero-borito .wp-block-button__link { width: 100%; text-align: center; }
	.tk-hero-tenyek { display: none !important; }
	.tk-kiallas { font-size: 24px; }
	.tk-csempek { gap: 10px !important; }
	.tk-csempe { min-height: 220px !important; padding: 20px !important; }
	.tk-csempe h3 { font-size: 22px; }
	.tk-galeria { gap: 8px !important; }
	.tk-galeria .wp-block-image { width: calc(50% - 4px) !important; }
	.tk-galeria .wp-block-image figcaption { font-size: 12px !important; padding: 18px 8px 6px !important; }
	.tk-pillerek { gap: 28px !important; }
	.tk-piller h3 { font-size: 26px; }
	.tk-lepesek > li::before { font-size: 34px; }
	.tk-szekcio-fej { margin-bottom: 20px; }
	.wp-block-details summary { font-size: 17px; padding: 16px 40px 16px 0; }
	.tk-urlap input, .tk-urlap select, .tk-urlap textarea { font-size: 16px !important; }
	.tk-roviden { padding: 18px 20px; }
	.tk-tartalom > h2 { margin-top: 44px; }
	.wp-block-columns { gap: 28px !important; }
	.tk-video video { border-radius: 4px; }
	.tk-lablec .wp-block-columns { gap: 32px !important; }
	.tk-fejlec .alignwide { padding-top: 10px !important; padding-bottom: 10px !important; }
	.tk-fejlec .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
	.tk-fejlec .wp-block-navigation__responsive-container.is-menu-open { background: var(--tk-ej) !important; padding: 24px 20px !important; }
	.tk-fejlec .wp-block-navigation__responsive-container.is-menu-open a, .tk-fejlec .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label { color: var(--wp--preset--color--alap) !important; font-size: 22px; }
	.tk-fejlec .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0 !important; padding: 4px 0 8px 14px !important; }
	.tk-fejlec .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a { color: #C3CFC6 !important; font-size: 18px; padding: 6px 0 !important; }
	.tk-fejlec .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--alap); }
	.tk-fejlec .wp-block-navigation__responsive-container-content { gap: 14px !important; }
}
@media (max-width: 400px) { .tk-hero-cim { font-size: 42px !important; } }
@media (max-width: 781px) {
	/* a blur új tartalmazó blokkot hozna létre, és a mobilmenü a fejlécbe szorulna */
	.tk-fejlec { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--tk-ej); }
}
@media (max-width: 781px) {
	.tk-fejlec .is-menu-open .wp-block-navigation__responsive-container-content, .tk-fejlec .is-menu-open .wp-block-navigation__container, .tk-fejlec .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left; }
	.tk-fejlec .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 48px; }
}
